Twitter bootstrap 3 如何通过CSS更改粘贴/滚动间谍中的bootstrap3导航丸活动颜色?
我尝试了几种方法通过CSS覆盖bootstrap3导航丸的活动颜色,但似乎没有那么重要。我也试过用!重要的相对CSS属性没有运气:越少总是有优先权 我发现的唯一方法显然是用定制的导航颜色重新编译引导,但我更喜欢使用CSS,这样我就可以依赖CDN了 有什么提示吗 相对粘贴/滚动间谍当然通过以下方式工作:Twitter bootstrap 3 如何通过CSS更改粘贴/滚动间谍中的bootstrap3导航丸活动颜色?,twitter-bootstrap-3,Twitter Bootstrap 3,我尝试了几种方法通过CSS覆盖bootstrap3导航丸的活动颜色,但似乎没有那么重要。我也试过用!重要的相对CSS属性没有运气:越少总是有优先权 我发现的唯一方法显然是用定制的导航颜色重新编译引导,但我更喜欢使用CSS,这样我就可以依赖CDN了 有什么提示吗 相对粘贴/滚动间谍当然通过以下方式工作: <body data-spy="scroll"> ... <ul class="nav nav-pills nav-stacked affix-top hidden-print
<body data-spy="scroll">
...
<ul class="nav nav-pills nav-stacked affix-top hidden-print" data-toggle="affix" data-spy="affix">
...
Relative(相对)不确定您做了什么,但此代码有效:
.nav-pills > li.active > a {
background-color:red;
}
// This changes the color of the active
.nav-pills>li.active>a:hover {
background-color:red;
}
// This changes the color of the hovered pill
不确定您做了什么,但此代码有效:
.nav-pills > li.active > a {
background-color:red;
}
// This changes the color of the active
.nav-pills>li.active>a:hover {
background-color:red;
}
// This changes the color of the hovered pill