pseudo-class
Last updated
Was this helpful?
Last updated
Was this helpful?
Pseudo-classes (MDN)
Selectors & Properties (CSS-Trick)
pseudo-class
notes
example
⭐️ 注意: p:first-child 是指一個 <p> 同時又是 :first-child。 如果要選「第一個出現」的 <p>,要用 p:first-of-type。
:last-child
:only-child
:nth-child(an+b)
:not( «selector» )
:not(:defined)
unkowned tag
:hover
:focus
:root
<html> element in HTML file
any element that has been defined (builtin or )
get direct children of an element