[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