您的位置:首页 > 其它

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 先排除非指定标签,指定标签的第一个有效
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: