HTML <area> รูปร่างคุณสมบัติ
ตัวอย่าง
ใช้แอตทริบิวต์รูปร่างเพื่อระบุรูปร่างของแต่ละพื้นที่ในแผนผังรูปภาพ:
<map
name="planetmap">
<area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun">
<area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury">
<area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus">
</map>
ความหมายและการใช้งาน
แอตทริบิวต์shape
ระบุรูปร่างของพื้นที่
แอตทริบิวต์shape
นี้ใช้ร่วมกับcoords
แอตทริบิวต์เพื่อระบุขนาด รูปร่าง และตำแหน่งของพื้นที่
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
shape | Yes | Yes | Yes | Yes | Yes |
ไวยากรณ์
<area shape="default|rect|circle|poly">
ค่าแอตทริบิวต์
Value | Description |
---|---|
default | Specifies the entire region |
rect | Defines a rectangular region |
circle | Defines a circular region |
poly | Defines a polygonal region |
❮ แท็ก HTML <พื้นที่>