<style>
.pie {
width: 300px;
aspect-ratio: 1;
border-radius: 100%;
background: conic-gradient(red 0 30%, orange 30% 60%, yellow 60% 85%, blue 85% 100%);
display: flex;
align-items: center;
justify-content: center;
}
.pie > .inner {
width: 70%;
aspect-ratio: 1;
border-radius: 100%;
background-color: #fff;
}
.box {
width: 200px;
height: 200px;
border-radius: 50%;
background: conic-gradient(red 0deg 90deg, pink 90deg 180deg, yellow 180deg);
}
</style>
<body>
<div class="pie">
<div class="inner"></div>
</div>
<div class="box"></div>
</body>
03-05
1304
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-20
587
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)