HTML座標属性
定義と使用法
この
coords
属性は、画像マップ内の領域の座標を指定します。
この属性は、領域のサイズ、形状、および配置を指定するために属性と
coords
一緒に使用されます。shape
ヒント:エリアの左上隅の座標は0,0です。
に適用されます
この
coords
属性は、次の要素で使用できます。
エレメント | 属性 |
---|---|
<エリア> | 座標 |
例
エリアの例
クリック可能な領域を含む画像マップ:
<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 | Yes | Yes | Yes | Yes | Yes |