html - Bootstrap Navbar-brand换色调试

标签 html css twitter-bootstrap ruby-on-rails-4

我的样式表/custom.css.scss 中有以下内容

@import "bootstrap";

.navbar-inverse .navbar-brand {
        color: #f0ad4e;
    }

我的 layouts/_header.html.erb 中的以下内容正在我的 layouts/application.html.erb 中使用

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <a class="navbar-brand">....... etc..

为什么我的导航栏品牌不会改变颜色!这让我发疯!

在我的检查器中,我看到以下内容:

.navbar-inverse .navbar-brand {
color: #999999;
}

所以它没有生效,有什么想法吗?

最佳答案

我解决了这个问题。这显然起到了作用:

.navbar-inverse .navbar-header .navbar-brand {
    color: #f0ad4e;
} 

关于html - Bootstrap Navbar-brand换色调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23650358/

相关文章:

html - 如何使图标(照片)响应

html - 为什么高度为:auto size to the child content and display:inline size to the grandparent?

html - Highslide 页内画廊被 Bootstrap 词缀破坏

html - 在图像上放置 div

html - 网页右侧的随机白色列

javascript - 为什么 Tooltip 不随鼠标移动?

html - 中心 Bootstrap 导航栏标题

javascript - 在下拉列表中选择元素并更改单词

javascript - 使用 Javascript .getElement 在类内定位 P

css - twitter bootstrap,row-fluid 里面的 row-fluid 有什么问题