firstchild与lastchild不生效 first-child与last-child不生效可以尝试使用first-of-type与last-of-type 作者:行果出处:http://www.cnblogs.com/xinggood 本博客文章大多为原创或者伪原创,转载请关注博主,原创文章并且留下链接。