【发布时间】:2017-06-26 17:55:45
【问题描述】:
此 svg 代码在 Firefox 和 chrome 中显示一个箭头,但在 Internet Explorer 11 中被破坏:
<svg viewBox="0 0 100 100">
<defs>
<marker id="arrow" markerWidth="5" markerHeight="6" refx="5" refy="2" orient="auto">
<path d="M0,0 L0,4 L5,2.5 L5,1.5 L0,0" style="fill:red;" ></path>
</marker>
</defs>
<path d="M0,0 L50,50"
style="stroke:red; stroke-width: 10px; fill: none;
marker-end: url(#arrow);"
></path>
</svg>
【问题讨论】:
-
pedantry 评论:您引用的标记没有 id,所以我很惊讶它可以工作。 >.
-
感谢@OwenBeresford - 现已修复。我最终使用了jsplumbtoolkit.com btw...
标签: html internet-explorer svg