Home  >  Article  >  Web Front-end  >  How to change nav color in bootstrap

How to change nav color in bootstrap

藏色散人
藏色散人Original
2020-11-20 10:26:004230browse

How to change the nav color in bootstrap: first reference the "bootstrap.css" file; then modify the color value of ".navbar-default" in the file.

How to change nav color in bootstrap

Recommended: "bootstrap video tutorial"

The operating environment of this tutorial: windows10 system, bootstrap3. Version 0, this method is suitable for all brands of computers.

How to modify the navigation bar color in Bootstrap

The principle is to modify the color value of .navbar-default in bootstrap.css or bootstrap.min.css. If you modify .navbar-default in bootstrap.css, reference the bootstrap.css file.

For example: where path is the WebContent path, Use <%String path = request.getContextPath();%> to obtain.

Then modify the css style referenced in the navigation bar:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn