text-decoration
- 属性清单
- text-decoration:
text-decoration:CSS1 兼容性:IE4+ NS4+ 继承性:无
语法:
- text-decoration : none || underline || blink || overline || line-through
参数:
- none : 无装饰
- blink : 闪烁
- underline : 下划线
- line-through : 贯穿线
- overline : 上划线
说明:
- 检索或设置对象中的文本的装饰。
- 有href特性的a,以及u,ins对象默认值为underline 。
- 对象strike,s,del,默认值是line-through。
- 没有文本的对象此属性不会作用。
- 对应的脚本特性为textDecoration
示例:
div { text-decoration : underline; }
div { text-decoration : underline overline; }
效果
请您用下面的按钮选择这段文字的text-decoration属性的值。看一看会发生什么,然后您就会明白这个属性的意义。希望您喜欢CobStudio,谢谢。