文字样式设置:
1. font:style weight size/line-height font-family (复合属性写法)
tips:简写字体设置的属性顺序(必须有size和family)
2. line-height 行高(包括字在内的高度)
3. letter-spacing 字符间距
word-spacing 空格间距
4. 字符排序方式 direction:ltr;rtl 从左到右,反之
5. 文本修饰: text-decoration 包括line-throught underline overline
6. 对齐方式: text-align center(居中对齐) left(左对齐) right(右对齐) justify(两端对齐)
7. 首行缩进: text-indent 60px;
8. 英文大小写字母:text-transform
uppercase全大写
lowercase全小写
capitalize首字母大写
9. 设置换行:white-space 不换行,取消换行:nowrap不包裹 (会撑出容器) overflow:hidden;text-overflow:clip(保持原样) ellipse省略号;
10. 垂直对齐:vertical-align top center bottom;百分比(100%等于行高);