:enabled
:checked
:before
:only-child
p:before{ content:"哈哈"; color:red; font-weight:400; }
## css1/css2的选择器 1. 常规的class选择器/id选择器/通配符/父子选择器/属性选择器 2. 兄弟选择器中的+, 但是 ~ 是css3的 3. first-letter/first-line/first-child,但是last-child是css3的 4. a标签的link/visited/hover/active, 还有focus 5. before/after选择器
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题