从CDN加载后修改Bootstrap断点 [英] Modifying Bootstrap breakpoints after loading from a CDN

查看:64
本文介绍了从CDN加载后修改Bootstrap断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用Bootstrap 3.3.7的自定义版本。具体来说,我将 @ grid-float-breakpoint @ screen-sm-min 更改为 @ screen-md-min 以防止导航栏溢出到两行。

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.

问题:我不想使用此功能自定义版本,因为我无法利用CDN。有没有办法加载CDN版本然后进行更改?

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.)

推荐答案

CSS是分层的,因此,如果您编写在另一样式表中编辑过CSS,并在从CDN中提取样式表后将其链接到html中,则应优先进行编辑。

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.

这篇关于从CDN加载后修改Bootstrap断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆