【发布时间】:2013-07-15 17:52:20
【问题描述】:
请假问题。 我需要使用 twitter bootstrap 创建 3 个流体列布局。 第一列是页面宽度的 45%, 第二个是 10% 第三个应该是页面宽度的 45%。
我试过了:
<div class="container-fluid">
<div class="row-fluid">
<div class="span5">
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<div class="span2"></div>
<div class="span5">
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td colspan="2">Larry the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
但是中间一栏太宽了,不是屏幕宽度的 10%。 请帮助我了解 twitter bootstrap 中流畅布局的理念。
【问题讨论】:
标签: html twitter-bootstrap fluid-layout