我有一個表格覆蓋圖像的頂部作爲其背景圖像。設置表單元格顏色
我想將單元格間距顏色設置爲白色,以便列看起來是分開的。
但是我不能設置<table>
背景色,因爲它會影響背景顏色,我也希望它保持透明。
<td>
每個都有自己的邊框顏色,因此我無法調整其邊框顏色爲白色。
<div id="container">
<img id="mybackgroundimage" />
<table id="table">
<tr>
<td class="green"></td>
<td class="green"></td>
<td class="red"></td>
</tr>
<tr>
<td class="red"></td>
<td class="green"></td>
<td class="red"></td>
</tr>
</table>
</div>
#container{
position: relative;
}
#table {
border-spacing: 2px;
position: absolute;
top: 0;
}
#table td.green {
border-color: green;
}
#table td.red {
border-color: red;
}
任何人都可以建議?
HTML代碼,如果可能的話 – Gowtham