我是Bootstrap框架的初学者,当我布置我的设计时,我遇到了问题。我想在行 - 流体内划分4列,所以我编写如下代码:
但它似乎不符合我的预期,第一个Lorem ipsum中的文字侵入了第二个并未固定为4列
<div class="row-fluid">
<div class="span2"></div>
<div class="span8">
<div class="row-fluid">
<div class="span3">Lorem ipsum dolor sit amet</div>
<div class="span3">Lorem ipsum dolor sit amet</div>
<div class="span3">Lorem ipsum dolor sit amet</div>
<div class="span3">Lorem ipsum dolor sit amet</div>
</div>
</div>
<div class="span2"></div>
任何人都可以帮助我,提前谢谢
答案 0 :(得分:1)
尝试在div.container-fluid
中包装html并关闭该行的div
标记:
<div class="container-fluid">
<div class="row-fluid">
<div class="span2">First</div>
<div class="span8">
<div class="row-fluid">
<div class="span3">Lorem ipsum dolor sit amet</div>
<div class="span3">Lorem ipsum dolor sit amet</div>
<div class="span3">Lorem ipsum dolor sit amet</div>
<div class="span3">Lorem ipsum dolor sit amet</div>
</div>
</div>
<div class="span2">Last</div>
</div>
</div>