first-child和last-child选择器 nth-child(n)第几个元素 nth-last-child(n)倒数第几个元素

:first-child 和  :last-child 分别表示父元素中第一个 或者  最后一个 子元素设置样式,如上图

原文地址:https://www.cnblogs.com/agansj/p/8552189.html