简体   繁体   中英

Bootstrap mobile breakpoint expands nav

I have a WordPress site which uses Bootstrap. For some reason, when I adjust my Chrome window, in mobile breakpoint (when the window is exactly the same width as the breakpoint), the mobile nav expands. When it's larger or smaller than the breakpoint, it collapses.

It's mostly annoyance, but I can't figure it out. Why does this happen?

EDIT:

This is the _variables.scss code:

$screen-xs:                  480px !default;
$screen-xs-min:              $screen-xs !default;
$screen-phone:               $screen-xs-min !default;

EDIT EDIT:

Changing the _variables.scss line:

$grid-float-breakpoint-max: ($grid-float-breakpoint -1) !default;

to

$grid-float-breakpoint-max: ($grid-float-breakpoint) !default;

solved the problem. @henrywright's solution is correct, thank you.

Using the Customizer , try adjusting the value of @grid-float-breakpoint . This will modify the point at which the navbar becomes uncollapsed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM