<!DOCTYPE html>
<html>
<body>
<svg width="500" height="500">
<polyline style="fill: lime; stroke: green; stroke-width: 3;" points="0,0,273,133,214,42"/>
</svg>
</body>
</html>
这是我的代码,请问为什么svg多边形的一侧缺少笔触或边框,但是为什么这样有效?
<polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:3" />
最佳答案
最后添加一个额外的0,0
。
points="0,0,273,133,214,42,0,0"