css - 悬停文本装饰 : none; does not work in IE

标签 css wordpress text-decorations

我通读了其他类似的帖子,但仍然无法在 IE 中使用 text-decoration: none。它适用于 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;
}

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

最佳答案

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

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

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

关于css - 悬停文本装饰 : none; does not work in IE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45202371/

相关文章:

html - 文字装饰 : underline not applying with inline-block span elements

与手机兼容的 Html 电子邮件模板

mysql - 删除WordPress表的最后一条记录

javascript - 在 WordPress 21 中更改滚动条上的标题背景

css - Internet Explorer 上的文本修饰

php - 使用 PHP 的 CSS 主动导航突出显示。下划线有效,颜色无效。为什么?

html - "aliasing"两个 css 类在一起

html - 更改图像不透明度并在鼠标悬停在其上时添加链接背景

javascript - jQuery动画批量图像

facebook - 更改永久链接结构时是否可以保持社交份额计数?