CSS3新增伪类有那些?
参考答案
结构类
:first-child、:last-child、:nth-child(n)、:nth-last-child、:nth-of-type、:first-of-type、:last-of-type、:only-child、:empty、:root
逻辑类
:not()、:is()、:where()、:has()
状态/交互类
:checked、:disabled、:enabled、:required、:optional、:valid、:invalid、:in-range、:out-of-range、:read-only、:placeholder-shown、:default、:indeterminate
其他
:target、:focus-within、:focus-visible、:fullscreen、:defined
(:hover、:active 等属 CSS2)