欢迎来到覃师宁博客!
帝国cms使用手册

在html和css中字体下划线如何设置

编辑:覃师宁来源:qinshining.com时间:2020-11-28 20:31:04阅读量:

字体下划线在html中的使用u标签设置,而在css使用text-decoration: underline设置,具体操作如下

在html中的使用<u>标签的用法是:

  • <p>这是一段在html中使用u标签的下滑线段落</p>

对应的在css样式中,文字下划线使用text-decoration: underline的写法

  • p{text-decoration: underline;}

比如

  • <p>这是一段在css中使用text-decoration: underline;表示下划线的文字锻炼</p>

css的写法和html中s标签写法效果一样

很赞哦!(

相关文章

更多回答

发表评论共有条评论
用户名:密码:
验证码:匿名发表
网创邦微信公众号