To add a response feature to the navigation bar, the content you want to fold must be wrapped in <div> with classes. Collapse,. Navbar-collapse. The folded navigation bar is actually a button with class. Navbar-toggle and two data-elements. The first is Data-toggle, which tells JavaScript what to do with the button, and the second is Data-target, which indicates which element to switch to. Three <span> with class. Icon-bar to create the so-called Hamburg button. These will switch to the elements in the. Nav-collapse <div>. In order to achieve these features, you must include a Bootstrap folding (Collapse) plug-in.
Effect Chart:
The following example demonstrates this:
If you want to further study, you can click here to learn, and then attach two wonderful topics: Bootstrap Learning Tutorials Bootstrap Practical course
The above is the entire content of this article, I hope to help you learn.