css text-decoration 属性规定添加到文本的修饰
修饰的颜色由 "color" 属性设置
| 默认值: | none |
|---|---|
| 继承: | no |
| 版本: | CSS1 |
| JavaScript 语法: | object.style.textDecoration="overline" |
text-decoration: none | underline | overline | line-through | blink | inherit| 值 | 描述 |
|---|---|
| none | 默认。定义标准的文本 |
| underline | 定义文本下的一条线 |
| overline | 定义文本上的一条线 |
| line-through | 定义穿过文本下的一条线 |
| blink | 定义闪烁的文本 |
| inherit | 规定应该从父元素继承 text-decoration 属性的值 |
设置 h1,h2,h3 和 h4 元素文本装饰
h1 {text-decoration:overline}
h2 {text-decoration:line-through}
h3 {text-decoration:underline}本文内容仅供个人学习/研究/参考使用,不构成任何决策建议或专业指导。分享/转载时请标明原文来源,同时请勿将内容用于商业售卖、虚假宣传等非学习用途哦~感谢您的理解与支持!