Moonless.net首页

Cutsin受难记

Home Blog 归宿美林湾 Labs

2009年8月26日星期三

nth-child和nth-of-type以及last-*的区别

其实区别很简单:
“with the same expanded element name”

而last-*简单理解就是倒序:
“after it in the document tree”
默认是:
“before it in the document tree”

计算方法同样是an+b-1,并允许取值为odd或even,看演示

详细介绍:http://www.w3.org/TR/css3-selectors/#nth-child-pseudo

标签:

收藏到网摘:新浪VIVI  365Key  POCO网摘  和讯网摘  我摘

0 条评论:

发表评论

订阅 博文评论 [Atom]

<< 主页