HTML coords 屬性
定義和用法
coords
屬性定義了影像地圖中區域的座標。
coords
屬性與 shape
屬性結合使用,用於指定區域的大小、形狀和位置。
提示:區域左上角的座標為 0,0。
適用範圍
coords
屬性可用於以下元素:
元素 | Attribute |
---|---|
<area> | coords |
示例
Area 示例
一個影像地圖,帶有可點選的區域
<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 | |||||
---|---|---|---|---|---|
coords | 是 | 是 | 是 | 是 | 是 |