这是小米一面的面试题,html里只有一个div,仅仅使用css如何画出无数个同心圆?
我能想到的办法是用伪元素(before和after),然后再定位,但是这样也只能画出3个同心圆。
div::before {
content: '';
width: 10px;
height: 10px;
background-color: green;
position: absolute;
top: 45px;
left: 45px;
border-radius: 50%;
}
<div></div>
css径向渐变让用吗?