效果图
CSS
.close {
position: relative;
width: 50px;
height: 50px;
background: rgba(0, 0, 0, .2);
border-radius: 50%;
&::after, &::before {
content: '';
height: 30px;
width: 5px;
background: #fff;
transform: rotate(45deg);
position: absolute;
top: 10px;
left: 23px;
}
&::before {
transform: rotate(-45deg);
}
}