Css 悬停时将超链接设置为下划线(无阴影效果)
我有这种款式:Css 悬停时将超链接设置为下划线(无阴影效果),css,wordpress,anchor,bbpress,Css,Wordpress,Anchor,Bbpress,我有这种款式: #bbpress-forums li.bbp-forum-freshness a:hover, #bbpress-forums li.bbp-topic-freshness a:hover { text-decoration: underline; -moz-box-shadow: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; } 然而,当
#bbpress-forums li.bbp-forum-freshness a:hover, #bbpress-forums li.bbp-topic-freshness a:hover {
text-decoration: underline;
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
然而,当我将鼠标悬停在链接上时:
正如您所看到的,它们仍然显示阴影效果。我已经能够在其他课程中使用上述方法
页面:
谢谢你的建议。我只希望它是一个没有阴影的下划线。看起来像是背景色,而不是方框阴影 尝试将以下内容添加到您的类中:
background: none;
border: none;
您不需要重置框阴影
请尝试以下操作:
.bbp-forum-title:hover, .bbp-forum-freshness a:hover {
background: transparent!important;
border-top: none!important;
}
除了您已经提供的CSS之外,请提供重新生成此内容所需的最短HTML。请参阅。感谢您的介绍和澄清,我不需要
框阴影
样式。谢谢您。效果很好。:)