Skip to content

第 14 题答案应为 red #3

@fighterleslie

Description

@fighterleslie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions