SVG 是使用 XML 來描述二維圖形和繪圖程式的語(yǔ)言。

SVG <polygon> 語(yǔ)法

<polygon> 標(biāo)籤用來創(chuàng)造含有不少於三個(gè)邊的圖形。

SVG <polygon> 範(fàn)例

<!DOCTYPE?html>
<html>
<body>

<svg?xmlns="http://www.w3.org/2000/svg"?version="1.1">
??<polygon?points="200,10?250,190?160,210"?style="fill:lime;stroke:purple;stroke-width:1"?/>
</svg>

</body>
</html>

運(yùn)行實(shí)例?

點(diǎn)擊"運(yùn)行實(shí)例" 按鈕查看線上實(shí)例