基本选择器
parent child
类似后代选择器,不分层次的选择满足条件的节点

parent > child

[[attribute]]
[[attribute=value]]
[[attribute!=value]]
[[attribute^=value]]
[[attribute$=value]]
[[attribute*=value]]

:has(selector)

prev + next

prev ~ siblings

位置选择器
:first

:first-child

:only-child

:nth-child

:even

:gr(index)/eq(index)

:contains('')

Paste_Image.png
其他

Paste_Image.png