首页  >  属性 Properties  >  文本装饰(Text Decoration)  >  text-decoration 源码下载

版本 : CSS2/CSS3 text-decoration

语法:

text-decoration:<' text-decoration-line '> || <' text-decoration-style '> || <' text-decoration-color '>

默认值看每个独立属性

适用于:所有元素

继承性:无

动画性:看每个独立属性

计算值:看每个独立属性

相关属性:<' text-decoration-skip '> || <' text-underline-position '>

取值:

<' text-decoration-line '>:
指定文本装饰的种类。相当于CSS2.1的 <' text-decoration '> 属性,可取值:none | underline | overline | line-through | blink
<' text-decoration-style '>:
指定文本装饰的样式。
<' text-decoration-color '>:
指定文本装饰的颜色。

说明:

复合属性。检索或设置对象中的文本的装饰。
  • 所有浏览器均支持CSS2.1中的 <' text-decoration '> 属性,在CSS3中,该属性定义被移植到其新的分解属性 <' text-decoration-line '> 上;
  • 对应的脚本特性为textDecoration

兼容性:

  • 浅绿 = 支持
  • 红色 = 不支持
  • 粉色 = 部分支持
ValuesIEFirefoxChromeSafariOperaiOS SafariAndroid BrowserAndroid Chrome
Basic Support6.0+2.0+4.0+6.0+15.0+6.0+2.1+18.0+
CSS3复合属性6.0-11.02.0-5.04.0-45.06.0-7.015.0-29.06.0-7.12.1-4.4.418.0-42.0
6.0-35.0-moz-7.1-8.0-webkit-#18.0-8.3-webkit-#1
36.0+
  1. 支持 <' text-decoration-style '> 写入 <' text-decoration '> 缩写方式,但其dotted | dashed属性值会表现为实线。