如何禁用“响应”网格在bootstrap? [英] How do I disable the "responsive" grid in bootstrap?
问题描述
所以响应网格的bootstrap看起来可怕的我的网站。当你收缩窗口,一切都被擦在一起,导航栏折叠成三行(我禁用响应崩溃导航栏)。
So the responsive grid for bootstrap looks horrible for my site. When you shrink the window, everything gets smushed together and the navbar collapses into three rows (I disabled the responsive-collapsing navbar).
我试图删除bootstrap-responsive.css但它仍然是那种流动的生活网格崩溃的东西。这让我很疯狂。
I tried deleting bootstrap-responsive.css but it still does that "fluid live grid collapsing" thing. It's driving me crazy.
如何设置导航栏和整个页面的最小宽度?
How can I set a minimum width for the navbar and the entire page? So that everything doesn't get pushed together and you have to use the horizontal scroll bar to navigate the page.
推荐答案
删除 bootstrap-responsive.css 应为您提供所需的行为。只要你使用 row
而不是 row-fluid ,所有 span * / code>在父容器中。
row
类不提供任何宽度约束,也不在< body>
但是, container
类在标准 bootstrap.css 中的显示宽度为940px。
Removing the bootstrap-responsive.css should provide you the behavior which you desire. All the span* classes are explicit width in regular Bootstrap as long as you are using row
and not row-fluid
in the parent containers. The row
class does not provide any width constraints, and none are made on the <body>
either. However, the container
class does have an explicit width of 940px in standard bootstrap.css.
这篇关于如何禁用“响应”网格在bootstrap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!