What is Bootstrap?
Bootstrap is a front-end framework for the rapid development of web applications and websites. Bootstrap is based on HTML, CSS, and JAVASCRIPT.
The bootstrap navigation bar has been exploring for a long time, either the left and right sides will not be aligned horizontally, or the colors are different. The novices finally got it done, put the code here and use it directly in the future.
The code looks like this:
<!DOCTYPE html><html lang="zh-cn"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><title></title><link href="css/bootstrap.min.css" rel="stylesheet"></head><body><nav role = "navigation"><div><!-- Brand and toggle get grouped for better mobile display --><div><button type="button" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"><span>Toggle navigation</span><span></span><span></span><span></span></button><a href="#">KKK</a></div><div id="bs-example-navbar-collapse-1"><ul><li><a href="#">Home<span></span></li></ul><div><ul><li><a href="#">haha<span></span></a></li><li><a href="#">haha<span></span></a></li></ul></div></div></div></nav><script src="js/jquery.min.js"></script><script src="js/bootstrap.min.js"></script></body></html>
Check out the results
The above is the example code for the BootStrap production navigation bar introduced to you by the editor. I hope it will be helpful to everyone!