1.字体样式
1.1字体大小:font-size
取值:数字 + px
1.2字体粗细: font-weight
取值:normal 或者 bold
1.3字体样式(是否倾斜):font-style
取值:normal 或者 italic
1.4字体类型: font-family
取值:字体名
1.5字体类型: font属性连写
格式:font:style weight size 字体
2.文本样式
2.1文本缩进:text—intend
取值:数字+ px 或者 数字 + em
2.2文本水平对齐方式:text—align
取值:
属性值 | 效果 |
left | 左对齐 |
center | 居中对齐 |
right | 右对齐 |
2.3文本修饰:text-decoration
取值:
属性值 | 效果 |
underline | 下划(常用) |
line-through | 删除线 (不常用) |
overline | 上划线(几乎不用) |
none | 无装饰线(常用) |
3.1行高:line—height
取值:数字 + px 或者 倍数