0
Who can give an example of <polygon> and <polyline> elements?
Hello everybody. Who can give an example of <polygon> and <polyline> elements? I don't understand this tags. Thank you in advance!
2 ответов
+ 2
Check this link: http://apike.ca/prog_svg_shapes2.html
+ 1
<svg width="2000" height="500">
<polyline style="stroke-linejoin:miter; stroke:black;
stroke-width:12; fill: none;"
points="0 0 , 0 100 , 100 100" />
</svg>
<!-- use the same code but for polygon , it will automatically connect the co-ordinates (0,0) and (100,100)-->
<svg width="2000" height="500">
<polygon style="stroke-linejoin:miter; stroke:black;
stroke-width:12; fill: none;"
points="0 0 , 0 100 , 100 100" />
</svg>