text-decoration
介绍
text-decoration
属性用于设置文本的修饰线外观。目前仅支持下划线,贯穿线/删除线两种样式。
取值
none
默认值无修饰线。underline
下划线。line-through
贯穿线/删除线。
样例:
text-decoration: none
text-decoration: underline
text-decoration: line-through
1
2
3
2
3
标准化语法
none | underline | line-through
1
与 Web 的区别
仅支持
underline
和line-through
两种位置的修饰线。不支持指定修饰线样式
text-decoration-style
。不支持指定修饰线的颜色
text-decoration-color
。