:has()选择器

轩辕大帝 / 2024-10-23 / 原文

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

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