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 |