:has()选择器

当拥有的子元素数量不确定时,可以尝试:has()选择器

https://codepen.io/argyleink/pen/RwdRaVg

posted @ 2024-10-17 15:38  轩辕大帝  阅读(0)  评论(0编辑  收藏  举报