Home  >  Q&A  >  body text

javascript - How to modify the @grid-float-breakpoint variable implementation when the elements contained in the bootstrap navigation bar overflow.

The whole problem is as shown in the picture. When the window is reduced to sm, the navigation bar becomes two lines. When the window is reduced to xs, it will be folded and hidden normally.
I just want to ask the master if he can fold the browser window directly when it is reduced to sm.
Please give me specific steps! Many thanks!

某草草某草草2716 days ago2100

reply all(1)I'll reply

  • 迷茫

    迷茫2017-06-05 11:14:46

    Adjust the display attribute under the width that needs to be folded and hidden. The xs should be the width of 768px. When setting the minimum width of 768px, the display is none. If the width is less than 768px, normal folding and hiding will be achieved. I hope it can help you!

    @media (min-width: 768px)
    .navbar-toggle {
        display: none;
    }

    reply
    0
  • 此用户已成仙

    No, I am folding it when the screen is smaller than 991px. I don’t know how to change it.

    此用户已成仙 · 2017-07-20 10:00:30
  • Cancelreply