774 B
774 B
title | localeTitle |
---|---|
Text Decoration Property | 文字装饰属性 |
文字装饰属性
text-decoration属性指定添加到文本的装饰。它有6个可能的值:
.none {text-decoration: none}
.underline {text-decoration: underline}
.line-through {text-decoration: line-through}
.overline {text-decoration: overline}
.initial {text-decoration: initial}
.inherit {text-decoration: inherit}
注意 :在CSS3中,您可以使用text-decoration-color属性更改装饰的颜色,否则颜色与文本的颜色相同。
更多信息:
文档: Mozilla开发者网络
浏览器支持: Caniuse