我需要使用Bootstrap 3.0创建一个网格布局,并在列之间留有空白。我使用了一行和4列,宽度为3的列。然而,它们全部出现在一起,没有任何空间。我怎么能这样做?使用Bootstrap 3.0的网格布局
实施例:
<div class="row">
<div class="col-lg-3" style="background-color: grey;">
col1
</div>
<div class="col-lg-3" style="background-color: grey;">
col2
</div>
<div class="col-lg-3" style="background-color: grey;">
col3
</div>
<div class="col-lg-3" style="background-color: grey;">
col4
</div>
</div>
你看过[这里](http://getbootstrap.com/css/#grid)吗? –
请参阅我对评论的回答,我已经引用了相同的链接。它并没有说如何在列之间留下空间。如果你使用保证金,那么有宽度溢出 – Caumons
考虑到我在2分钟之前发布了链接,你几乎把你放在一个奇怪的地方,不是吗?而且,你不遵循那里提到的代码。尝试'col-md- *' –