使用stroke-dasharray="3 2" 属性,其中3和2分别表示画的长度和间隙的长度 比如
<line x1="0" y1="5" x2="100" y2="5" stroke-dasharray="2 2" stroke="red"/>
在svg里面画虚线
最新推荐文章于 2024-06-05 10:26:53 发布
使用stroke-dasharray="3 2" 属性,其中3和2分别表示画的长度和间隙的长度 比如
<line x1="0" y1="5" x2="100" y2="5" stroke-dasharray="2 2" stroke="red"/>