CSS文本装饰:text-decoration

text-decoration简介
text-decoration属性在CSS文本装饰中是比较常用的,本文将带你深入理解text-decoration属性的各个方面,包括它的语法、取值、作用和浏览器兼容性,最后附上text-decoration的实例,希望能够对你有所帮助。
text-decoration定义和用法

text-decoration:[ text-decoration-line ] || [ text-decoration-style ] || [ text-decoration-color ]

默认值看每个独立属性

适用于:所有元素

继承性:无

动画性:看每个独立属性

计算值:看每个独立属性

相关属性:[ text-decoration-skip ] || [ text-underline-position ]

text-decoration属性值
[ text-decoration-line ]:
指定文本装饰的种类。相当于CSS2.1的 text-decoration 属性,可取值:none | underline | overline | line-through | blink
[ text-decoration-style ]:
指定文本装饰的样式。
[ text-decoration-color ]:
指定文本装饰的颜色。
text-decoration说明
复合属性。检索或设置对象中的文本的装饰。
  • 所有浏览器均支持CSS2.1中的text-decoration属性,在CSS3中,原CSS2.1中的text-decoration属性被移植到新text-decoration属性的分解属性text-decoration-line上;
  • 对应的脚本特性为textDecoration


来源:http://caibaojian.com/css3/properties/text-decoration/text-decoration.htm
2020-01-16 10:38 举报

关于挟翼

挟翼一款提供UI页面设计的软件。
您只需要动一动鼠标绘制相关的元素,软件会自动帮你完成CSS样式和HTML代码。
从现在开始注册,立即赠送一年VIP会员。活动结束日期待定。