值得注意的是:如果你正在使用少或青菜與引導,改變容器的大小就像改變一個變量一樣簡單。在引導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