6.5 文本装饰
text-decoration CSS3变成了复合属性
text-decoration:text-decoration-line || text-decoration-style || text-decoration-color
注意:
所有浏览器均支持 CSS2.1 中的
text-decoration
属性,在CSS3中,该属性定义被移植到其新的分解属性text-decoration-line
上;text-decoration-line 设置文本装饰线的位置
取值:
none: 指定文字无装饰 (默认值)
underline: 指定文字的装饰是下划线
overline: 指定文字的装饰是上划线
line-through: 指定文字的装饰是贯穿线
blink: 指定文字的装饰是闪烁。
text-decoration-style 文本装饰线条的形状
取值:
solid: 实线 (默认)
double: 双线
dotted: 点状线条
dashed: 虚线
wavy: 波浪线
text-decoration-color 文本装饰线条的颜色