【发布时间】:2013-08-02 08:07:58
【问题描述】:
我有一个主体背景为灰色的设计,内容位于具有 20 像素填充的白色容器内。
我正在使用 Bootstrap 创建它,但是如果我将这个 20px 填充添加到容器中,那么所有其他 span 元素都不适合...
应该是:
<div class="container"> <!-- this should be white background -->
<div class="row">
<div class="span4"></div> <!-- this element should be 20px margin left -->
<div class="span4"></div>
<div class="span4"></div> <!-- this element should be 20px margin right -->
</row>
</div>
有没有办法用 Bootstrap 创建这种容器?
谢谢。
【问题讨论】:
标签: html css twitter-bootstrap