列表最后一个样式去掉

264 阅读1分钟
&:not(:last-child) {
    padding-right: 2px;
}

优点: 不用单独判断最后一个的样式