twitter-bootstrap – 引导3 容器流体与网格添加不必要的填充

我想我的内容是流动的,但当使用.container-fluid与Bootstrap的网格,我仍然看到填充。如何摆脱填充?

我看到,我没有得到与.row的填充,但我想添加列,一旦我做,填充回来:O。

我想要能够使用全宽的列。

一个例子:

<div class="container-fluid">
    <div class="row">
      <div class="col-sm-6">
    <p>Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>
  </div> 
  <div class="col-sm-6">
    <p>Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>
  </div> 
</div>

解决方我有

覆盖bootstrap.css,linke 1427& 1428(v3.2.0)

padding-right:15px;
padding-left:15px;

padding-right:0px;
padding-left:0px;

解决方法

你还应该添加一个“行”到每个容器,这将“修复”这个问题!
<div class="container-fluid">
   <div class="row">
        Some text
   </div>
</div>

http://jsfiddle.net/3px20h6t/

相关文章

Bootstrip HTML 查询搜索常用格式模版 &lt;form class=&...
如何在按钮上加红色数字 您可以使用Bootstrap的badge组件来在...
要让两个按钮左右排列,你可以使用 Bootstrap 的网格系统将它...
是的,可以将status设置为布尔类型,这样可以在前端使用复选...
前端工程师一般用的是Bootstrap的框架而不是样式,样式一般自...
起步导入:<linkrel="stylesheet"href="b...