【发布时间】:2020-06-24 15:48:47
【问题描述】:
如何仅使用 HTML&CSS 来创建规范的椭圆进度条?
My jsfiddle try 工作但看起来不同(没有内\外边框或填充)
<svg viewBox="0 0 64 64" class="pie">
<circle class="background" r="25%" cx="50%" cy="50%"></circle>
<circle class="chart" r="25%" cx="50%" cy="50%" stroke-dasharray="85 100"></circle>
</svg>
【问题讨论】:
-
看起来不一样是什么意思?
-
我的变体没有内外边框。
-
有没有最好的方法来调节没有中风破折号的进度百分比?因为它不能正常工作,例如:jsfiddle.net/sboe73ft
标签: html css progress-bar pie-chart