我正在尝试将 TD 标签值与 TH 标签值对齐,但在这里我遇到了一些对齐问题。请帮我解决这个问题。
我在这里尝试了jsfiddle
Html 代码:
<table class="table table-bordered">
<tbody>
<tr id="groupListHeader" class="row-fluid bold">
<th>Organization<br/>
<button id="A_1" class="sort_asc">↑</button><button id="D_1" class="sort_desc">↓</button>
</th>
<th>Group Code<br/>
<button id="A_2" class="sort_asc">↑</button><button id="D_2" class="sort_desc">↓</button>
</th>
<th>Created On<br/>
<button id="A_3" class="sort_asc">↑</button><button id="D_3" class="sort_desc">↓</button>
</th>
<th>Loan Profiles<br/>
<button id="A_4" class="sort_asc">↑</button><button id="D_4" class="sort_desc">↓</button>
</th>
<th>Allocated<br/>
<button id="A_5" class="sort_asc">↑</button><button id="D_5" class="sort_desc">↓</button>
</th>
<th>Need Detail<br/>
<button id="A_6" class="sort_asc">↑</button><button id="D_6" class="sort_desc">↓</button>
</th>
<th>Rejected<br/>
<button id="A_7" class="sort_asc">↑</button><button id="D_7" class="sort_desc">↓</button>
</th>
<th>To Publish<br/>
<button id="A_8" class="sort_asc">↑</button><button id="D_8" class="sort_desc">↓</button>
</th>
<th>Not Allocated<br/>
<button id="A_9" class="sort_asc">↑</button><button id="D_9" class="sort_desc">↓</button>
</th>
</tr>
<tr>
<td colspan="12" id="groupData">
<table class="table">
<tbody><tr>
<td><a href="/borrowerReview/groupCodesAAView.action?fb=1&fp=134871839">Freedom From Hungers</a></td>
<td class="span2">
<a href="/borrowerReview/viewLoanProfilesList.action?gc=587&ls=0">
<span class="mttp-pop curpointer" data-placement="right" data-title="Group code detail" data-content="<ul class="pull-0"><li>Status : DRAFT</li><li>Tenure: 12</li><li>Expiry Date: 09-01-2013</li> <li>Repayment Mode : EWI</li><li>Max Loans: 10</li></ul>" data-original-title="" title="">
Fre_Bro_7_05Jan13
</span>
</a>
</td>
<td>05-01-2013</td>
<td>0</td>
<td><a href="/borrowerReview/viewLoanProfilesList.action?gc=587&ls=1">0</a></td>
<td><a href="/borrowerReview/viewLoanProfilesList.action?gc=587&ls=2">0</a></td>
<td><a href="/borrowerReview/viewLoanProfilesList.action?gc=587&ls=3">0</a></td>
<td><a href="/borrowerReview/viewLoanProfilesList.action?gc=587&ls=4">0</a></td>
<td><a href="/borrowerReview/viewLoanProfilesList.action?gc=587&ls=5">0</a></td>
<td>
<a href="/borrowerReview/editLoanGroup.action?gc=587"><i class="icon icon-cog"></i></a>
</td>
</tr></tbody></table>
</td>
</tr>
</tbody></table>