001-css选择器

nth

1

p:nth-of-type(2)       p父p类型第2个红色

这是标题

第一个段落。

第二个段落。红

p:nth-of-type(3n+0)p类型第3个每3轮第0个



2

p:nth-child(2)          p父第2个

这是标题

第一个段落    红

你可能感兴趣的:(001-css选择器)