参考链接:http://www.w3school.com.cn/cssref/selector_nth-child.asp
p:nth-child(2) { background:#ff0000; } 选择元素p 的 父元素 的 第二个子元素,不论类型
p:nth-of-type(2)#选择元素p 的 父元素 的 第二个子元素,不论类型
{ background:#ff0000; }
原文:https://www.cnblogs.com/Gaoqiking/p/11029055.html