text-decoration-line简介
text-decoration-line属性在CSS文本装饰中是比较常用的,本文将带你深入理解text-decoration-line属性的各个方面,包括它的语法、取值、作用和浏览器兼容性,最后附上text-decoration-line的实例,希望能够对你有所帮助。
text-decoration-line定义和用法
text-decoration-line:none | [ underline || overline || line-through || blink ]
默认值:none
适用于:所有元素
继承性:无
动画性:否
计算值:指定的值
text-decoration-line属性值
- none:
- 指定文字无装饰
- underline:
- 指定文字的装饰是下划线
- overline:
- 指定文字的装饰是上划线
- line-through:
- 指定文字的装饰是贯穿线
- blink:
- 指定文字的装饰是闪烁。
text-decoration-line说明
检索或设置对象中的文本装饰线条的位置。
- 相当于CSS2.1的 text-decoration 属性
- 对应的脚本特性为textDecorationLine。
来源:http://caibaojian.com/css3/properties/text-decoration/text-decoration-line.htm