of-type和child的区别
2013-05-30 15:06
323 查看
nth-of-type,nth-last-of-type 先排除非指定标签再进行排序
nth-child,nth-last-child不排除非指定标签进行排序
only-of-type 不允许包含非指定标签
only-child 允许包含非指定标签 但只能有唯一指定标签
first-child,last-child 第一个必须是指定标签才有效,
first--of-type ,last-of-type 先排除非指定标签,指定标签的第一个有效
nth-child,nth-last-child不排除非指定标签进行排序
only-of-type 不允许包含非指定标签
only-child 允许包含非指定标签 但只能有唯一指定标签
first-child,last-child 第一个必须是指定标签才有效,
first--of-type ,last-of-type 先排除非指定标签,指定标签的第一个有效
相关文章推荐
- :last-child与:last-of-type你只是会用,有研究过区别吗?
- CSS3中:nth-child和:nth-of-type的区别
- :nth-child(n)与:nth-of-type(n)的区别
- nth-child和nth-of-type的区别
- css3中nth-child选择器和nth-of-type选择器的区别
- css选择器中:first-child与:first-of-type的区别
- jQuery中的小知识:first-child和first-of-type的区别
- jQuery 选择器 first-child和first-of-type、 last-child和last-of-type的区别
- CSS 中 nth-child 和 nth-of-type 的区别
- 深入理解css3中nth-child和 nth-of-type的区别
- :nth-child 和 :nth-type-of 的区别
- CSS选择器中first-child和first-of-type的区别
- css选择器中:first-child与:first-of-type的区别
- CSS3中:nth-child和:nth-of-type的区别深入理解
- first-of-type与first-child区别
- css选择器中:first-child与:first-of-type的区别
- css nth-child(n)和nth-of-type(n)区别
- :last-child与:last-of-type你只是会用,有研究过区别吗?
- nth-child和nth-of-type的区别
- 关于css选择器中nth-of-type和nth-child的区别