![](/img/trans.png)
[英]Styles will only apply if the selected element is the first child of a specific parent in CSS
[英]CSS select element with class, only if it is NOT first child of parent
使用:not
和:first-child
選擇器應該做到這一點。
.special:not(:first-child) {}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.