移动端1px分割线设置 // 使用伪类 最后一个li留白 &:not(:last-child):after{ content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #ccc; transform: scaleY(0.5); } 另一个使用的 border-bottom: solid 1px #ccc; 对比图