css text-decoration属性怎么用

silencement
silencement 原创
2019-05-27 15:18:11 2525浏览

CSS text-decoration 属性定义及使用说明

text-decoration 属性规定添加到文本的修饰。

注意: 修饰的颜色由 "color" 属性设置。

27e3fbe65c5f74ac52464c66f8bf9b7.png

实例:

设置h1,h2,h3和h4元素文本装饰

h1 {text-decoration:overline}
h2 {text-decoration:line-through}
h3 {text-decoration:underline}

属性值

a71295cbedad54b7ea73a55febfb013.png

以上就是css text-decoration属性怎么用的详细内容,更多请关注php中文网其它相关文章!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。