CSS参考手册
»
属性列表
»
文本属性
»
相关内容:
其它文本属性参考
选择其它项
text-indent
text-overflow
text-align
text-transform
text-decoration
text-decoration-line
text-decoration-color
text-decoration-style
text-shadow
text-fill-color
text-stroke
text-stroke-width
text-stroke-color
letter-spacing
word-spacing
vertical-align
word-wrap
white-space
direction
unicode-bidi
line-height
tab-size
text-decoration-color
版本:CSS3
继承性:无
语法:
text-decoration-color
:
<color>
默认值
:
采用文本颜色
取值:
<color>
:
指定颜色。
说明:
检索或设置对象中的文本装饰线条的颜色。
对应的脚本特性为
textDecorationColor
。
兼容性:
浅绿
= 支持
红色
= 不支持
墨绿
= 部分支持
橙色
= 实验性质
支持版本
\类型
IE
Firefox
Safari
Chrome
Opera
版本
6.0-9.0
4.0-9.0
5.1
13.0-16.0
11.50-11.60
示例:
<!DOCTYPE html> <html lang="zh-cn"> <head><meta charset="utf-8" /> <title>text-decoration-color_CSS参考手册_web前端开发参考手册系列</title> <meta name="copyright" content="www.doyoe.com" /> <style> .test li{margin-top:10px;} .test li:nth-child(1){ -moz-text-decoration-style:solid; -moz-text-decoration-color:#f00; -moz-text-decoration-line:underline; } .test li:nth-child(2){ -moz-text-decoration-style:dotted; -moz-text-decoration-color:#090; -moz-text-decoration-line:underline; } .test li:nth-child(3){ -moz-text-decoration-style:dashed; -moz-text-decoration-color:#999; -moz-text-decoration-line:underline; } .test li:nth-child(4){ -moz-text-decoration-style:double; -moz-text-decoration-color:#000; -moz-text-decoration-line:underline; } .test li:nth-child(5){ -moz-text-decoration-style:wavy; -moz-text-decoration-color:#00f; -moz-text-decoration-line:underline; } </style> </head> <body> <ul class="test"> <li>不同颜色的文字装饰线条</li> <li>不同颜色的文字装饰线条</li> <li>不同颜色的文字装饰线条</li> <li>不同颜色的文字装饰线条</li> <li>不同颜色的文字装饰线条</li> </ul> </body> </html>