CSS 伪类选择器 :where()
CSS About 267 words:where() 和 :is() 的区别
:where()的优先级总是为0,而:is()会计入整个选择器的优先级(它采用其最具体参数的优先级)。
语法
:where(选择器列表) {
/* ... */
}
示例
:where(section.where-styling, aside.where-styling, footer.where-styling) a {
color: orange;
}
参考文档
Views: 23 · Posted: 2025-11-07
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...