解决:加定位
&::before{
content: '';
width: 1px;
height: 0.3rem;
display: block;
background: #fff;
position: absolute;
left: 0;
top: 0;
bottom: 0;
margin: auto;
}
解决:加定位
&::before{
content: '';
width: 1px;
height: 0.3rem;
display: block;
background: #fff;
position: absolute;
left: 0;
top: 0;
bottom: 0;
margin: auto;
}