最后一个不加伪类:
ul li:not(:last-child)::after {
content: '';
height: 14px;
border: 1px solid #3c423f;
position: absolute;
top: 4px;
right: 0;
}
给最后一个和第一个不加伪类:
ul li:not(:first-child):not(:last-child)::after{
content: '';
left: 10px;
bottom: 0;
210px;
position: absolute;
border-bottom: 1px solid red;
}