问题
I'm currently using a custom version of Bootstrap 3.3.7. Specifically, I changed @grid-float-breakpoint
from @screen-sm-min
to @screen-md-min
to prevent the navbar from spilling over onto two lines.
The Question: I don't want to use this custom version because I can't take advantage of a CDN. Is there a way to load a CDN version and then make this change?
(Also, I couldn't figure out how to avoid the spillover in the navbar without changing the breakpoint, any advice on a better way to do that would be appreciated.)
回答1:
CSS is hierarchical, so if you write your edited CSS in another stylesheet and link it in your html after the one you pull from the CDN, your edit should take precedence.
来源:https://stackoverflow.com/questions/42755280/modifying-bootstrap-breakpoints-after-loading-from-a-cdn