css中如何使用text-decoration属性
小编给大家分享一下css中如何使用text-decoration属性,希望大家阅读完这篇文章后大所收获,下面让我们一起去探讨吧!
CSS text-decoration 属性定义及使用说明
text-decoration 属性规定添加到文本的修饰。
注意: 修饰的颜色由 "color" 属性设置。
实例:
设置h2,h3,h4和h5元素文本装饰
h2 {text-decoration:overline} h3 {text-decoration:line-through} h4 {text-decoration:underline}
属性值
看完了这篇文章,相信你对css中如何使用text-decoration属性有了一定的了解,想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!