[email protected]我试图在我的内容区域内适合引导表。我发现Eric Saupe的教程here在th
中使用bootstraps默认列类来修复td
的宽度,但在我的Firefox中,它似乎不起作用。我table
低于:twitter bootstrap列类不工作在表
<div class="row">
<div class="col-md-10 p-l-xlg">
<table class="records_list table table-condensed table-striped table-bordered">
<thead>
<tr>
<th class="col-md-1">Name</th>
<th class="col-md-1">Organization</th>
<th class="col-md-1">Designation</th>
<th class="col-md-1">Address</th>
<th class="col-md-1">Office Phone</th>
<th class="col-md-1">Resident Phone</th>
<th class="col-md-1">Mobile</th>
<th class="col-md-1">Email</th>
<th class="col-md-1">Relation</th>
<th class="col-md-1">Actions</th>
</tr>
</thead>
<tbody>
{% for ref in reference %}
<tr>
<td>{{ ref.name }}</td>
<td>{{ ref.organization }}</td>
<td>{{ ref.designation }}</td>
<td>{{ ref.address }}</td>
<td>{{ ref.phoneOff }}</td>
<td>{{ ref.phoneRes }}</td>
<td>{{ ref.mobile }}</td>
<td>[email protected]</td>
<td>{{ ref.getRelationReadable }}</td>
<td>
<a href="{{ path('applicant_profile_reference_edit', { 'id': ref.id }) }}" class="btn btn-login editlightbox">
<i class="glyphicon glyphicon-pencil"></i> Edit</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
我没有这个表比引导默认有其他附加的CSS。我实际上需要调整电子邮件td的大小,因为这是最大的,但是把这个类放到那个地方也是行不通的。我究竟做错了什么?任何帮助深表感谢。
所有col-md- *值加起来为13. Bootstrap使用12列布局,所以不知道这将如何布局。 – DavidG 2014-09-01 16:21:41
我已经打了一个bootply,它以什么方式不适合你? http://www.bootply.com/Jb9Q4dljvL – DavidG 2014-09-01 16:23:51
哎呀....输入错误...我打了四个而不是1!编辑! :p – 2014-09-01 16:24:58