基本選擇器
parent child
類似后代選擇器熟嫩,不分層次的選擇滿足條件的節(jié)點(diǎn)
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