.step-img-box::after {
content: "";
display: block;
width: 60%;
/* height:60%; */
padding-bottom: 60%;
background-color: #fdf2e9;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
z-index: -1;
}
重点在于 width 和 padding-bottom,前者规定宽度,后者设置一部分内容以便占据对应的高度。
相关链接: