值得注意的是:如果你正在使用少或青菜与引导,改变容器的大小就像改变一个变量一样简单。在引导3(3.3.5确切地说)在variables.less
文件看起来像这样的容器设置:
//== Container sizes
//
//## Define the maximum width of `.container` for different screen sizes.
// Small screen/tablet
@container-tablet: (720px + @grid-gutter-width);
//** For `@screen-sm-min` and up.
@container-sm: @container-tablet;
// Medium screen/desktop
@container-desktop: (940px + @grid-gutter-width);
//** For `@screen-md-min` and up.
@container-md: @container-desktop;
// Large screen/wide desktop
@container-large-desktop: (1140px + @grid-gutter-width);
//** For `@screen-lg-min` and up.
@container-lg: @container-large-desktop;
(见bootstrap's github repo)
所以适应的.container
大小为大屏幕,简单地覆盖通过将其添加到您自己的variables.less
-file变量@container-large-desktop
:
@container-large-desktop: ((930px + @grid-gutter-width));
(@grid-gutter-witdh
设置为30px
在默认情况下,因此以上会导致有一个960像素的容器)
[Bootstrap:如何更改容器的宽度?](http://stackoverflow.com/questions/15884102/bootstrap-how-do-i-change-the-宽度的容器) –
阅读关于它[这里](http://getbootstrap.com/getting-started/#disable-responsive)。看看这个例子[这里](http://getbootstrap.com/examples/non-responsive/)。得到你所有的CSS [这里](http://getbootstrap.com/examples/non-responsive/non-responsive.css) – slynagh
@Mohamed Samy你是否在这些** Sass **或** LESS **? – Muhammed