我有一張桌子,我想擺脫我的th
的第一個td
的邊界右邊。什麼是最有效的方式擺脫表頭的第一個元素的邊界右側?
HTML
<div class="container" <div class="row" style=" margin-right: 15px; margin-left: 15px;">
<div class="col-xs-3">
<div id="piechart"></div>
</div>
<div class="col-xs-9">
<table class="table table-bordered piechart-key ">
<thead>
<th colspan="2" ></th>
<th></th>
<th>Item Summary</th>
<th>Item List</th>
</thead>
<tbody>
<tr>
<td width="30"></td>
<td width="200">> 50% of students answered these items correctly</td>
<td width="50">5/25</td>
<td width="100">5,10,15,19,23</td>
</tr>
<tr>
<td width="30"></td>
<td width="200">50% up to 75% of students answered these items correctly</td>
<td width="50">8/25</td>
<td width="100">3,7,11,13,14,16,21,22</td>
</tr>
<tr>
<td width="30"></td>
<td width="200">≥ 75% of students answered these items correctly</td>
<td width="50">12/25</td>
<td width="100">1,2,4,6,8,9,12,17,18,20,24,25</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<hr style="height:5pt; visibility:hidden;" />
我已經試過
.table th > td:first-child {
border-right: none;
}
沒有效果,邊框依然存在。
什麼是最有效的方式來擺脫表頭的第一個元素的關閉邊界嗎?
或日爲你呈現在PIC是個那麼有點困惑。 –
你有沒有得到我的代碼?或者我需要改進它? –
你可以把你的相關CSS在這裏 –