1.nth-child(n)选择器
匹配父元素中的第n(从1开始)个子元素;其中n可以是一个数字或表达式。
//选择列表的第二个标签设置其背景色为红色
li:nth-child(2){
background-color: red;
}
//选择倒数第2个li
li:nth-last-child(2){
background-color: red;
}
2.last-child
select: last-child:
选择select父元素的最后一个子元素,且同时满足select条件的元素