-2
我有這個表:如何使用無邊框的一種顏色對一行着色?
<table class="custom-table">
<tr>
<td>231232131</td>
<td>INTERNATIONAL FEDERATION O</td>
</tr>
</table>
我想是有一行用一種顏色例如#eee;
現在,當我添加
tr{
background:#eee;
}
我有灰色的顏色行,但td之間我有空白,但如果我補充:
table{
background:#eee
}
然後我沒有tr之間的空間。任何建議?
關閉我的頭頂,也許['邊界崩潰:collapse'(https://developer.mozilla.org/en/docs/Web/CSS/邊界崩潰)'表'上? – domsson