我在wordpress上有一個簡單的html表格。我想爲每一行都設置不同的邊框顏色,甚至在每一行周圍創建一個小小的空白。我怎樣才能做到這一點?表格周圍的不同行邊框顏色
我試過這樣:
<table style="border-collapse: collapse;">
<tbody>
<tr style="border: 1px solid black;">
<th>Zoo (Country)</th>
<th>Date of Birth</th>
<th>Name</th>
<th>Dam (number of calves)</th>
<th>Sire</th>
</tr>
<tr style="color: darksalmon; border: 1px solid green;">
<td>Knowsley (UK)</td>
<td>2 Jan 2016</td>
<td>Nomvula</td>
<td>Meru (9)</td>
<td>Sharka</td>
</tr>
</tbody>
</table>
中,你可以看到綠色的邊框和黑色邊框重疊
請張貼你已經嘗試了一些現有的代碼。 [閱讀此處](http://stackoverflow.com/help/mcve)以獲取有關如何創建最小,完整和可驗證問題的更多信息。 – Toby
完成,對不起:-) – gabrielesani