1. :first-child(选中第一个元素)
2. :last-child(选中最后一个元素)
3. :nth-child() :选中指定的元素
特殊值:
1)2n/even表示选中偶数位的元素
2)2n+1/odd表示选中奇数位的元素
4. :first-of-type:在同类元素中的第一个元素
5. :last-of-type:在同类元素中的最后一个元素
6. :nth-of -type():同类型元素中的第x个
7. :not() :否定伪类
1. :first-child(选中第一个元素)
2. :last-child(选中最后一个元素)
3. :nth-child() :选中指定的元素
特殊值:
1)2n/even表示选中偶数位的元素
2)2n+1/odd表示选中奇数位的元素
4. :first-of-type:在同类元素中的第一个元素
5. :last-of-type:在同类元素中的最后一个元素
6. :nth-of -type():同类型元素中的第x个
7. :not() :否定伪类