【问题标题】:Hover text-decoration: none; does not work in IE悬停文本装饰:无;在 IE 中不起作用
【发布时间】:2017-07-19 22:55:54
【问题描述】:

我阅读了其他类似的帖子,但我仍然无法获得 text-decoration: none 在 IE 中工作。它适用于 Edge、Chrome 和 Firefox。这些页面也在 WordPress 上(如果有什么不同的话)。

我正在使用的 CSS:

.glyphNext:after {
display: inline-block;
font-family: CaGov; 
content: "\e669";
padding-left: 5px;
vertical-align: middle;
text-decoration: none!important;
}
.glyphNext:hover::after {
text-decoration: none!important;
}

还有其他想法吗?我只希望文本链接带有下划线,我不希望我的字形在悬停时带有下划线。

【问题讨论】:

  • 也发布 HTML。

标签: css wordpress text-decorations


【解决方案1】:

首先,.glyphNext 是什么?是锚标签吗?

如果是锚标记,将text-decoration: none; 附加到选择器上,如下所示:

.glyphNext, .glyphNext:hover {
    text-decoration: none;
}

【讨论】:

    猜你喜欢
    • 2012-05-10
    • 2013-01-19
    • 1970-01-01
    • 2015-08-08
    • 2012-09-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-03
    相关资源
    最近更新 更多