- 字体
font-family
例:2-5
- 文字大小
Font-size
- 文字颜色
Color
- 文字粗细
Font-weight
例:2-6
- 文字下划线、删除线、定划线
Text-decoration:underline /*下划线*/
Text-decoration:overline /*顶划线*/
Text-decoration:line-through; /*删除线*/
- 英文字母大小写
Text-transform:capitalize /*单词首字大写*/
Text-transform:uppercase /*全部大写*/
Text-transform:lowercase /*全部小写*/
- 文字间距
Letter-spacing (默认为normal)
例:google 2-7
对齐方式
Text-align 例:2-8
Left | Right | Center | Justify |
左对齐 | 右对齐 | 居中对齐 | 两端对齐 |
行间距
Line-height(行间距等于高度时垂直居中)