我想在行末端添加箭头
我尝试了这个代码
<svg>
<g id="vc">
<defs>
<marker id="arrowhead_bc" markerWidth="10" markerHeight="7"
refX="0" refY="3.5">
<polygon points="0 0, 10 3.5, 0 7" />
</marker>
</defs>
<rect x='.5' y='0' width='120' height='.5' style="fill:red;stroke:red" marker-end="url(arrowhead_bc)"/>
</g>
</svg>
我想在线路的末端添加一个箭头,以便我可以使用一个一个者元素?
I tried this code
<svg>
<g id="vc">
<defs>
<marker id="arrowhead_bc" markerWidth="10" markerHeight="7"
refX="0" refY="3.5">
<polygon points="0 0, 10 3.5, 0 7" />
</marker>
</defs>
<rect x='.5' y='0' width='120' height='.5' style="fill:red;stroke:red" marker-end="url(arrowhead_bc)"/>
</g>
</svg>
I want to add an arrow at the end of the line with angle position so that I can use a rect element?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)