你试试这样写 ul li:last-child a:after{ background: none}加上这一句就可以了哦。ul>li:last-child>a::after{display:none; }
使用:not选择器,排除最后一个元素.item-info:not(:last-child):after {}