firstchild与lastchild不生效

first-child与last-child不生效可以尝试使用first-of-type与last-of-type

作者:行果
本博客文章大多为原创或者伪原创,转载请关注博主,原创文章并且留下链接。
原文地址:https://www.cnblogs.com/xinggood/p/15703270.html