1.选择器1.css1选择器2.css2选择器3.css3选择器4.:nth-of-type(n)和:nth-child(n)(1)的区别。当没有指定类型时,nth-child(n)选择父元素下的第N个子元素。nth-of-type(n)选取父元素下第N个不同类型的标签。(2).在指定具体元素时,ele:nth-child(n)要求的不仅仅是第n个子元素,这个子元素的标签是ele。ele:nth-of-type(n)选择父元素下ele标签的第n个5.:last-chid和:last-of-type。ele:last-child选择父元素下的最后一个子元素。并且子元素的标签必须是ele,否则none都不会被选中。ele:last-of-type选择父元素下的最后一个ele标签。
