【发布时间】:2020-01-14 05:28:31
【问题描述】:
我正在尝试在这张图片上画一个百分比圆圈:
我在这里尝试过使用它,但我不是很高兴。我无法改变圈子的进度,总而言之,我不确定这是否是我的最佳想法:
circle {
stroke-dasharray: 326px;
stroke-dashoffset: 0;
stroke-linecap: round;
stroke-width: 4px;
stroke: #000000;
fill: none;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
}
<svg>
<circle r="52" cx="54" cy="54"></circle>
</svg>
【问题讨论】:
-
@Kurisu 这对于我想做的事情来说太复杂了。没有更简单的方法吗?