【发布时间】:2018-08-30 20:09:49
【问题描述】:
我可以使用折线和路径绘制相同的东西,但是当它被渲染时,我看到了不同之处。这就是为什么这个问题 -
<svg xmlns="http://www.w3.org/2000/svg">
<polyline points="200 100, 220 120, 280 120, 300 100" style="stroke:red; stroke-width:2px; fill:none" />
<path d="M200 100 L220 150 H280 L300 100" style="stroke:blue;stroke-width:2px; fill:none" />
</svg>
你会看到水平线,虽然都是 2px,但一个看起来更细。为什么?在这里查看https://jsfiddle.net/xeafLqjp/
【问题讨论】: