Front-end-Web-Development-Interview-Question
Front-end-Web-Development-Interview-Question copied to clipboard
第 14 题答案应为 red
#awesome .favorite:not(#awesome) .highlight 的特异性为 0, 2, 2, 0
#awesome .highlight:nth-of-type(1):nth-last-of-type(1) 的特异性为 0, 1, 3, 0
注意::not(X) 伪类选择器的特异性为其参数 X 的特异性,:not 伪类选择器本身不增加选择器的特异性。