文本装饰属性- text-decoration
语法
- text-decoration:<' text-decoration-line '> || <' text-decoration-style '> || <' text-decoration-color '>
说明
- text-decoration-line:指定文本装饰种类,可取值none,underline,overline,line-through,blink
- text-decoration-style:指定文本装饰样式,可取值solid,double,dotted,dashed,wavy
- text-decoration-color:指定文本装饰线条的颜色
注意事项
1.大部分浏览器都不支持text-decoration-line的blink值。
2.text-decoration-style的取值dotted和dashed取值在除FF的浏览器中要么实现不了,要么表现为实线。
兼容性
FireFox对text-decoration属性支持的比较好,其他浏览器欠佳。