总结css3选择器
总结一下css3选择器,如有遗漏欢欢迎补充
1、基本选择器
- id选择器
- class选择器
- 标签选择器
- 通用选择器
- 群组选择器
2、关系选择器
- 后代选择器
- 子代选择器
- 兄弟选择器
3、动态伪类选择器
- :link选择器
- :visited选择器
- :hover选择器
- :activied选择器
4、 目标伪类选择器
- :target选择器
5、ui元素状态选择器
- :checked选择器
- :diseabled选择器
- :enabled选择器
6、结构为类选择器
- :first-child选择器
- :first-of-type选择器
- :last-child选择器
- :last-of-type选择器
- :nth-child(n)选择器
- :nth-of-type(n)选择器
- :only-child选择器
- :only-of-type选择
7、属性伪类选择
- 【value】
- 【value=“值”】
- 【value$=“值”】
- 【value^=“值”】
- 【value*=“值”】
- 8、为元素选择器
- :first-letter
- :first-line
- :after
- :before