CSS的逻辑组合伪类
摘要:CSS 的逻辑组合伪类有 4 种,分别是::not()、:is()、:where()和:has()。 否定伪类:not() :not 伪类选择器用来匹配不符合一组选择器的元素。由于它的作用是防止特定的元素被选中,它也被称为反选伪类(negation pseudo-class)。 也叫否定伪类,是在元
阅读全文
posted @
2023-12-06 14:51
JoeYoung
阅读(138)
推荐(0) 编辑
CSS结构伪类选择器之否定伪类:not()
摘要:结构伪类选择器是针对 HTML 层级结构的伪类选择器。 常用的结构化伪类选择器有: :root选择器、:not选择器、:only-child选择器、:first-child选择器、:last-child选择器、 :nth-child选择器、:nth-child(n)选择器、:nth-last-chi
阅读全文
posted @
2023-12-05 14:48
JoeYoung
阅读(2673)
推荐(0) 编辑