我正在尝试删除应用于 bootstrap 3.0.3 中所有 anchor 标记的悬停。这是我的基本结构
<ul class="nav affix-top">
<li class="menu-text"><a href="#">hello</a></li>
</ul>
我试过在我的 css 中使用 !important 但到目前为止没有成功
.menu-text a:hover {
background-color: none !important;
}
最佳答案
也许你的 CSS 表达式不够具体,被另一个表达式否决了,你用 Firebug 检查了吗?
尝试这样的事情
ul.nav li.menu-text a:hover {
background-color: transparent;
}
PS: background-color: none
不是一个有效的选项。请改用透明
。
关于twitter-bootstrap - 如何使用 bootstrap 3 从特定 anchor 标记中删除悬停背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20936625/