text-decoration

介绍

text-decoration属性用于设置文本的修饰线外观。目前仅支持下划线,贯穿线/删除线两种样式。

取值

  • none
    默认值无修饰线。

  • underline下划线。

  • line-through贯穿线/删除线。

样例:

text-decoration: none
text-decoration: underline
text-decoration: line-through
1
2
3

标准化语法

none | underline | line-through
1

与 Web 的区别

  • 仅支持underlineline-through两种位置的修饰线。

  • 不支持指定修饰线样式text-decoration-style

  • 不支持指定修饰线的颜色text-decoration-color

Last Updated: 2022/7/15 下午7:22:06