SVG 进度条绘制

缺乏、安全感 2022-12-07 04:29 267阅读 0赞
  1. <svg width="150px" height="150px" class="svg">
  2. <circle cx="75" cy="75" r="70" stroke="#EAEFF4" stroke-width="8" fill="none" />
  3. <circle cx="75" cy="75" r="70" stroke="#AE40FB" stroke-width="8" fill="none" stroke-dasharray="439.8" :stroke-dashoffset="439.8-item.useEff*439.8" />
  4. </svg>

stroke-dasharray:可以认为圆环的周长
stroke-dashoffset:可以认为需要画的比例长度

发表评论

表情:
评论列表 (有 0 条评论,267人围观)

还没有评论,来说两句吧...

相关阅读