【问题标题】:'text-decoration-line: underline ' not working'文本装饰线:下划线'不起作用
【发布时间】:2019-10-27 08:18:50
【问题描述】:

在 css 文件中,我给出了代码来为我的文本添加下划线, 文字装饰线:下划线 但它不起作用。 它甚至不适用于直通。 我将这种样式用于 h1 标签,并且我没有为 h1 标签提供 id 或 class。 提前谢谢你。

【问题讨论】:

  • 分享你的代码
  • 不需要代码也没关系,因为它是错误的样式类型。

标签: html css


【解决方案1】:

就是text-decoration,就像这样:

.hi {
text-decoration: underline;
}
<h1 class="hi" >
Hi guys
</h1>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-03-24
    • 2013-09-26
    • 2020-07-17
    • 1970-01-01
    • 2012-09-30
    • 2022-07-12
    • 2020-03-19
    • 2011-12-23
    相关资源
    最近更新 更多