SVG <polygon>


老快三选号技巧—官方网址22270.COM鈥擲VG 澶氳竟褰 - <polygon>

瀹炰緥 1

<polygon> 鏍囩鐢ㄦ潵鍒涘缓鍚湁涓嶅皯浜庝笁涓竟鐨勫浘褰€

老快三选号技巧—官方网址22270.COM澶氳竟褰㈡槸鐢辩洿绾跨粍鎴愶紝鍏跺舰鐘舵槸"灏侀棴"鐨勶紙鎵鏈夌殑绾挎潯 杩炴帴璧锋潵锛夈

Remarkpolygon鏉ヨ嚜甯岃厞銆 "Poly" 鎰忓懗 "many" 锛 "gon" 鎰忓懗 "angle".

涓嬮潰鏄疭VG浠g爜锛

瀹炰緥

<svg height="210" width="500"> <polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1"/> </svg>

灏濊瘯涓涓 禄

瀵逛簬Opera鐢ㄦ埛锛 鏌ョ湅SVG鏂囦欢锛堝彸閿崟鍑籗VG鍥惧舰棰勮婧愶級銆

浠g爜瑙f瀽锛

  • points 灞炴у畾涔夊杈瑰舰姣忎釜瑙掔殑 x 鍜 y 鍧愭爣

瀹炰緥 2

涓嬮潰鐨勭ず渚嬪垱寤轰竴涓洓杈圭殑澶氳竟褰細

涓嬮潰鏄疭VG浠g爜锛

瀹炰緥

<svg height="250" width="500"> <polygon points="220,10 300,210 170,250 123,234" style="fill:lime;stroke:purple;stroke-width:1" /> </svg>

灏濊瘯涓涓 禄

瀵逛簬Opera鐢ㄦ埛锛 鏌ョ湅SVG鏂囦欢锛堝彸閿崟鍑籗VG鍥惧舰棰勮婧愶級銆


瀹炰緥 3

浣跨敤 <polygon> 鍏冪礌鍒涘缓涓涓槦鍨:

涓嬮潰鏄疭VG浠g爜锛

瀹炰緥

<svg height="210" width="500"> <polygon points="100,10 40,198 190,78 10,78 160,198" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;" /> </svg>

灏濊瘯涓涓 禄

瀵逛簬Opera鐢ㄦ埛锛 鏌ョ湅SVG鏂囦欢锛堝彸閿崟鍑籗VG鍥惧舰棰勮婧愶級銆


瀹炰緥 4

鏀瑰彉 fill-rule 灞炴т负 "evenodd":

涓嬮潰鏄疭VG浠g爜锛

瀹炰緥

<svg height="210" width="500"> <polygon points="100,10 40,198 190,78 10,78 160,198" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" /> </svg>

灏濊瘯涓涓 禄

瀵逛簬Opera鐢ㄦ埛锛 鏌ョ湅SVG鏂囦欢锛堝彸閿崟鍑籗VG鍥惧舰棰勮婧愶級銆