Depends on JavaScript
If JavaScript is disabled and the viewport is narrow enough to cause the navigation bar to collapse, the navigation bar will not be opened and the content contained within .navbar-collapse
will not be visible.
Modify the threshold of the viewport, thereby affecting the arrangement mode of the navigation bar
When the width of the browser viewport (viewport) is less than the @grid-float-breakpoint
value, the elements inside the navigation bar become folded, which is transformed into the mobile device display mode; when the browser viewport (viewport) When the width is greater than the @grid-float-breakpoint
value, the elements inside the navigation bar become horizontally arranged, that is, it is transformed into a non-mobile device display mode. By adjusting this value in the source code, you can control when the navigation bars are stacked and when they are arranged horizontally. The default value is 768px
(the minimum value for small screens - or tablets).