Working with Typography
2016-04-21 09:02
253 查看
Adding Color to Text#
Font Properties
Font Family
Font Size
Font Style
Font Weight
Line Height
Shorthand Font Properties
html { font: italic bold 14px/22px "Helvetica Neue", Helvetica, Arial, sans-serif;}
Text Properties
Text Align
Text Decoration
Text Indent
Text Shadow
Text Transform
Letter Spacing
Word Spacing
Using Web-Safe Fonts
By default there are a few fonts that are pre-installed on every computer, tablet, smart-phone, or other web-browsing-capable device. Because they’ve been installed on every device, we can use these fonts freely within our websites, knowing that no matter what device is browsing our site, the font will render properly. These fonts have become known as “web-safe fonts.” There are only a handful of them, and the safest of the web-safe fonts are listed here:Arial
Courier New, Courier
Garamond
Georgia
Lucida Sans, Lucida Grande, Lucida
Palatino Linotype
Tahoma
Times New Roman, Times
Trebuchet
Verdana
Embedding Web Fonts
@font-face { font-family: "Lobster"; src: local("Lobster"), url("lobster.woff") format("woff");}body { font-family: "Lobster", "Comic Sans", cursive;}
相关文章推荐
- l两点之间的距离--线段类
- 第八周项目1--数组做数据成员(2)
- bzoj 2730: [HNOI2012]矿场搭建 dfs
- 一个界面,有多个UITextField的时候,点击提交按钮发送数据时,取消键盘
- 常用SQL语句
- 第四次实验
- 滴滴快车奖励政策,高峰奖励,翻倍奖励,按成交率,指派单数分级(4月21日)
- HDU 4031 Attack
- python psutil 进行系统管理 no.1
- 无废话ExtJs 入门教程四[表单:FormPanel]
- Spring MVC 流程图
- jquery实现侧边栏左右伸缩
- 第七周上机实践项目 项目1-成员函数,友元函数,和一般函数的区别(2)
- 将top命令查看指定程序的结果输出到文件
- 位运算与字母大小写转换
- 第八周项目四 游戏中的角色类增强版
- 什么是java本地方法(Native Method)
- 贝叶斯学习--极大后验概率假设和极大似然假设
- 俄罗斯方块游戏JavaScript代码
- win7下装完ubuntu linux后,开机画面怎直接进入linux了,win7怎么启动