Modifying Bootstrap breakpoints after loading from a CDN

橙三吉。 提交于 2019-12-12 05:52:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!