24 lines
774 B
Markdown
24 lines
774 B
Markdown
|
---
|
|||
|
title: Text Decoration Property
|
|||
|
localeTitle: 文字装饰属性
|
|||
|
---
|
|||
|
## 文字装饰属性
|
|||
|
|
|||
|
text-decoration属性指定添加到文本的装饰。它有6个可能的值:
|
|||
|
|
|||
|
```css
|
|||
|
.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开发者网络](https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration)
|
|||
|
|
|||
|
浏览器支持: [Caniuse](http://caniuse.com/#search=text-decoration)
|