Svg圈小冲程-dasharray缺少抗锯齿

时间:2018-05-17 10:24:14

标签: html5 svg stroke-dasharray

如果我在圆圈上使用非常小的笔划 - dasharray,它会在圆圈中间产生奇怪的“矩形”形状。导致这种行为的原因是什么方法可以解决它?

Chrome stroke-dasharray:0.6及更低版本失败 Firefox stroke-dasharray:2和更低失败

<svg viewBox="0 0 100 100" style="width:800px;height:800px;">
  <circle cx="50" cy="50" r="50" fill="black" stroke="red" stroke-width="100" stroke-dasharray="0.6, 10000"></circle>
</svg>

<svg viewBox="0 0 100 100" style="width:800px;height:800px;">
  <circle cx="50" cy="50" r="50" fill="black" stroke="red" stroke-width="100" stroke-dasharray="0.7, 10000"></circle>
</svg>

<svg viewBox="0 0 100 100" style="width:800px;height:800px;">
  <circle cx="50" cy="50" r="50" fill="black" stroke="red" stroke-width="100" stroke-dasharray="2, 10000"></circle>
</svg>

<svg viewBox="0 0 100 100" style="width:800px;height:800px;">
  <circle cx="50" cy="50" r="50" fill="black" stroke="red" stroke-width="100" stroke-dasharray="3, 10000"></circle>
</svg>

enter image description here

0 个答案:

没有答案