.line {
width: 2rpx;
height: 100%;
background: linear-gradient(to bottom, #9E9E9E 0%, #9E9E9E 50%,transparent 50%);
background-size: 2rpx 12rpx;
background-repeat: repeat-y;
}
效果图
转载于:https://blog.csdn.net/weixin_50606255/article/details/120543835