新增僞類有:spa
:first-of-type p:first-of-type 選擇屬於其父元素的首個 <p> 元素的每一個 <p> 元素。 :last-of-type p:last-of-type 選擇屬於其父元素的最後 <p> 元素的每一個 <p> 元素。 :only-of-type p:only-of-type 選擇屬於其父元素惟一的 <p> 元素的每一個 <p> 元素。 :only-child p:only-child 選擇屬於其父元素的惟一子元素的每一個 <p> 元素。 :nth-child(n) p:nth-child(2) 選擇屬於其父元素的第二個子元素的每一個 <p> 元素。 :nth-last-child(n) p:nth-last-child(2) 同上,從最後一個子元素開始計數。 :nth-of-type(n) p:nth-of-type(2) 選擇屬於其父元素第二個 <p> 元素的每一個 <p> 元素。 :nth-last-of-type(n) p:nth-last-of-type(2) 同上,可是從最後一個子元素開始計數。 :last-child p:last-child 選擇屬於其父元素最後一個子元素每一個 <p> 元素。 :root :root 選擇文檔的根元素。 :empty p:empty 選擇沒有子元素的每一個 <p> 元素(包括文本節點)。 :target #news:target 選擇當前活動的 #news 元素。 :enabled input:enabled 選擇每一個啓用的 <input> 元素。 :disabled input:disabled 選擇每一個禁用的 <input> 元素 :checked input:checked 選擇每一個被選中的 <input> 元素。 :not(selector) :not(p) 選擇非 <p> 元素的每一個元素。 ::selection ::selection 選擇被用戶選取的元素部分。