css伪类 给所有元素加一个下划线,但最后一个不加 给所有元素加一个下划线,但最后一个不加 展示同样高亮的 代码片 .some-row { display: block; position: relative; height: 36px; line-height: 36px; &:not(:last-child)::after{ content: ' '; height: 1px; background-color: #eee; width: 76%; bottom: 0; position: absolute; left:12%; } }