以下为ChatGPT自动生成的解答,正确与否请自行判断。

BFE.devAI解答 - CSS 问题
7. 一行

.row { height: 50px; background: #eee; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; } .row:nth-of-type(even) { background: #ddd; } .row:first-of-type { border-top: none; } .row:last-of-type { border-bottom: none; } .row:not(:last-of-type):not(:first-of-type) { border-collapse: collapse; }