CSS--文本属性

font-size 文本的大小 例如:font-size:12px

font-weight 文本是否加粗 例如:font-weight:bold//normal(加粗//正常)

font-style 文本是否倾斜 例如:font-style:italic//normal(倾斜//正常)

font-family 文本的字体 例如:font-family:隶书(默认是宋体)

text-decoration 文本是否有线条 例如:text-decoration:underline//overline//linethrough//none(下划线//上划线//删除线//无线条)

text-indent 文本首行缩进 例如:text-indent:2em 首行缩进两个字符

color:字体颜色 例如:color:red

letter-spacing 字母与字母之间的距离 例如:letter:spacing:2px

word-spacing 单词与单词之间的距离 例如:word-spacing:2px

text-align 文本的对齐方式 例如:text-align:left//center//right(左对齐//居中//右对齐)

posted @ 2017-07-07 20:16  SugarMonster丶  阅读(117)  评论(0编辑  收藏  举报