<style>
#city th { background-color: darkcyan; }
#city tfoot td { background-color: darkgrey; }
#city { border-collapse: collapse; }
#city th, td { border: 1px solid salmon; } /* 注意:這裡的 td 未加 #city 前綴 */
.class1 { border-bottom: 1px solid darkseagreen; }
</style>
<table id="city">
<tr class="class1"><td> </td><td> </td><td> </td></tr>
...
</table>
為何 `.class1` 的 `border-bottom` 沒有套用到 `
/* 明確針對 #city 表格中 class1 行的 td 設定底部邊框 */
#city tr.class1 td {
border-bottom: 1px solid darkseagreen;
}