<div class="shanxing shanxing1">
<div class="sx1"></div>
<div class="sx2"></div>
</div>
.shanxing{
position: relative;
width: 200px;
height: 200px;
border-radius: 100px;
background-color: yellow;
}
.sx1{
position: absolute;
width: 200px;
height: 200px;
clip: rect(0px,100px,200px,0px);
border-radius: 100px;
background-color: #f00;
}
.sx2{
position: absolute;
width: 200px;
height: 200px;
clip: rect(0px,100px,200px,0px);
border-radius: 100px;
background-color: #f00;
}
.shanxing1 .sx1{
transform: rotate(-30deg);
}
.shanxing1 .sx2{
transform: rotate(-150deg);
}
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/2a7ae5b9b260df5ce010be34338c0845.png)