首页 > 代码库 > CSS--文本属性
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(左对齐//居中//右对齐)
CSS--文本属性
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。