🌟

CSS選取器

2024/06/11に公開

權重

!important ← 10000分
<div style="color=#333;> ← inline style 1000分
ID ← 100分
class ←10分
HTML tag ←1分

:hover

:active

:visted

:before :after

:not(#container)

::first-letter/::first-line

:nth-child(even){}

li:nth-child(3)

:nth-last-child(n)

:nth-of-type(n)

:first-child{}

:last-child{}

ul>li:last-child{}

li + li

ul > li

li ~ a

:checked

Discussion