html——mapラベル(w 3 c参照)

2594 ワード

<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" />

<map name="planetmap" id="planetmap">
  Venus
  Mercury
  Sun
map>

クライアント画像マッピングを定義します.画像マッピング(image-map)とは、クリック可能な領域を有する画像を指す.
shape = 'rect / circle / polygon'
coods = 'x1,y1,x2,y2 / x,y,r / x1,y1,x2,y2,x3,...'

areaオプション属性
coords座標値は、クリック可能な領域(マウスに敏感な領域)の座標を定義します.
href URLは、この領域の宛先URLを定義します.
nohref nohrefは、画像マッピングから領域を除外します.
shape
default rect circ polyは領域の形状を定義します.
target
_blank _parent _self _topは、hrefプロパティで指定したターゲットURLをどこで開くかを規定します.