Change the default header color in MVC5 app
I've create MVC5 app ,in the view index the header color is black and I want to change it,where can I find it?
I try to search for #000000 but its in a lot places ...
In default MVC 5 web site, the background color of the header navigation bar is applied through .navbar-inverse
css class available in bootstrap.css
file under Contentbootstrap.css
folder of your project.
To change this style, you can override it in the Site.css file instead of changing the base bootstrap css file itself.
Simply adding the following to your Site.css file should change the background color of the navbar.:
.navbar-inverse { background-color: #ccc !important; }
Add:
.navbar {
background-color: #39870C; // kind af green
}
in the Site.css
file located in the Content
folder to override the background-color.
上一篇: 如何设置Angular JS的引导navbar活动类?
下一篇: 更改MVC5应用程序中的默认标题颜色