我有一个有内外框阴影的圆圈,但有 1px 不需要的边框。谁能帮我理解为什么只有圈子会发生这种情况并分享解决方案。
.wrapper {
padding: 30px;
}
.circle {
width: 120px;
height: 120px;
border-radius: 50%;
box-shadow: inset 0 0 0 16px #f9f9f9, 0 0 0 16px #f1f1f1;
background: #32a500;
}
<div class="wrapper">
<div class="circle"></div>
</div>