设置h1,h2,h3和h4元素文本装饰:
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 文本
CSS unicode-bidi 属性CSS 参考手册定义和用法unicode-bidi 属性与 direction 属性一起使用,来设置或返回文本是否被重写,以便...
CSS3 border-image-width 属性属性定义及使用说明border-image -width属性指定图像边界的宽度。默认值:1继承:no版本:CSS3JavaScr...
CSS align-self 属性CSS 参考手册定义和用法align-self 属性定义flex子项单独在侧轴(纵轴)方向上的对齐方式。。注意:align-se...
CSS3 text-justify 属性实例Justification改变字与字之间的间距:div{text-align:justify;text-justify:inter-word;}浏览器支持...
CSS 参考手册实例不允许换行:p.test {text-wrap:none;}亲自试一试浏览器支持目前主流浏览器都不支持 text-wrap 属性。定义和用...