一、文本属性总结
二、详细讲解
1、常用font-weight取值
100 细体 ligter
400 正常 normal
700 加粗 bold
900 更粗体 bolder
2、设置英语中的词间距
word-spacing:10px;
3、首行缩进:text-indent
缩进两个字符大小,与字体大小的两倍,为防止每次字体大小变化后都需手动修改text-indent,直接设置:
text-indent:2em;
4、text-decoration多属性定义
text-decoration属性设置多个时,不能顺序写会发生覆盖,直接在一个属性中按照空格设置多个值,例如:
text-decoration:line-through underline overline;
5、字体大小写属性
text-transform:
capitalize 首字母大写
lowercase 全部小写
uppercase 全部大写
none