Front-end-Web-Development-Interview-Question icon indicating copy to clipboard operation
Front-end-Web-Development-Interview-Question copied to clipboard

第 14 题答案应为 red

Open fighterleslie opened this issue 10 years ago • 0 comments

#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 伪类选择器本身不增加选择器的特异性。

fighterleslie avatar May 25 '15 16:05 fighterleslie