一个列表的布局,但最后一个很明显有边框,我不想让他出现。该怎么做呢 ?
.list{
margin-top: 10px;
li{
display: flex;
justify-content: space-between;
position: relative;
padding: 12px 15px;
background-color: #fff;
.right{
font-size: 13px;
color: #999;
}
}
li:after{
content: '';
position: absolute;
left: 15px;
right: 0;
bottom: 0;
border-bottom: 1px solid #eee;
}
}
li:last-child:after{
content:'';
border-bottom: 0;
}