[KongchangAI]
Concepthas 伪类 / 父选择器

:has()

A relational CSS pseudo-class that selects elements based on the state of their descendants or siblings, enabling parent-selection logic that previously required scripting.

Timeline (last 90 days)

Oct 21

The :has() pseudo-class lets developers select a parent element based on the state of its child elements, which previously required scripts to achieve.

Unverified50%

All Facts (1)

Source Articles