举报投诉联系我们 手机版 热门标签 VUE中文网
您的位置:VUE中文网 > CSS text-decoration 属性

CSS text-decoration 属性

2023-04-13 00:17 CSS参考手册

 CSS text-decoration 属性

CSS text-decoration 属性

实例

设置h1,h2,h3和h4元素文本装饰:

h1 {text-decoration:overline}
h2 {text-decoration:line-through}
h3 {text-decoration:underline}


属性定义及使用说明

text-decoration 属性规定添加到文本的修饰。

注意: 修饰的颜色由 "color" 属性设置。

默认值: none
继承: no
版本: CSS1
JavaScript 语法: object.style.textDecoration="overline"


浏览器支持

表格中的数字表示支持该属性的第一个浏览器版本号。

属性          
text-decoration 1.0 3.0 1.0 1.0 3.5

属性值

描述
none默认。定义标准的文本。
underline定义文本下的一条线。
overline定义文本上的一条线。
line-through定义穿过文本下的一条线。
blink定义闪烁的文本。
inherit规定应该从父元素继承 text-decoration 属性的值。


相关文章

CSS 教程: CSS 文本

阅读全文
以上是VUE中文网为你收集整理的 CSS text-decoration 属性全部内容。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
相关文章
© 2024 VUE中文网 vue88.com 版权所有 联系我们