html - bootstrap no-gutter 网格系统不工作

标签 html css twitter-bootstrap

我在互联网上找到了一些关于如何制作 bootstrap grid gutter lass 的代码。 我正在使用 bs v3.3.1 我的代码片段是

.row.no-gutter{
     margin-left:0px !important;
     margin-right:0px !important;
}
.no-gutter > [class*='col-'] {
     padding-right:0;
     padding-left:0;
 }

我的实现是:

<div class="row no-gutter">
   <div class="col-md-4">
    ...
   </div>
   <div class="col-md-4">
    ...
   </div>
   <div class="col-md-4">
    ...
   </div>
 </div>

我只使用 css .. NO LESS 或 SASS

最佳答案

我觉得最合适的方式是去bootstrap customize http://getbootstrap.com/customize/#grid-system并设置 @grid-gutter-width=0 这样你就不会有装订线填充了。

关于html - bootstrap no-gutter 网格系统不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29766097/

相关文章:

jquery - bootstrap 3 旋转木马在骑自行车时高度缩小

java - Jsoup:循环遍历表行

php - 解析 PHP 的基本文本输出

html - 缩短冗余代码的 css 技巧

html - Bootstrap Accordion - 开始全部关闭

javascript - 使用 Vanilla Javascript 的 Bootstrap 模态

html - 水平子菜单对齐的垂直下拉菜单

html - body 内的元素不适合 body

html - 列在 IE 中自行折叠

css - 多个选择标签和 bootstrap css 网格系统