แอตทริบิวต์รูปร่าง HTML
ความหมายและการใช้งาน
แอตทริบิวต์shape
ระบุรูปร่างของพื้นที่
แอตทริบิวต์shape
นี้ใช้ร่วมกับแอตทริบิวต์เพื่อระบุขนาด รูปร่าง และตำแหน่งของพื้นที่
coords
นำไปใช้กับ
สามารถใช้ แอตทริบิวต์shape
กับองค์ประกอบต่อไปนี้:
องค์ประกอบ | คุณลักษณะ |
---|---|
<พื้นที่> | รูปร่าง |
ตัวอย่าง
แผนผังรูปภาพพร้อมพื้นที่ที่สามารถคลิกได้:
<img src ="planets.gif"
width="145" height="126"
alt="Planets"
usemap="#planetmap">
<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>
รองรับเบราว์เซอร์
Attribute | |||||
---|---|---|---|---|---|
shape | Yes | Yes | Yes | Yes | Yes |