我需要使用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- *' –