随笔 - 419  文章 - 3  评论 - 331  阅读 - 120万
12 2023 档案
CSS的逻辑组合伪类
摘要:CSS 的逻辑组合伪类有 4 种,分别是::not()、:is()、:where()和:has()。 否定伪类:not() :not 伪类选择器用来匹配不符合一组选择器的元素。由于它的作用是防止特定的元素被选中,它也被称为反选伪类(negation pseudo-class)。 也叫否定伪类,是在元 阅读全文
posted @ 2023-12-06 14:51 JoeYoung 阅读(138) 评论(0) 推荐(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) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示