[英]How can I prevent first-child CSS from also affecting the second child in my HTML Table?
將thead
添加到您的CSS:
thead tr:first-child { color: skyblue }
編輯:雖然您實際上並不需要第first-child
,但可以只使用thead tr
因為您在thead
只有一行
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.