HTML <area> 标签
html <area> 定义图像映射内部的区域(图像映射指的是带有可点击区域的图像)
<area> 元素始终嵌套在 <map> 内部
<img> 中的 usemap 与 <map> 元素中的 name 相关联,以创建图像与映射之关系
和注释:
注释:<img> 中的 usemap 可引用 <map> 中的 id 或 name (由浏览器决定),所以我们需要同时向 <map> id 和 name 两个。
必需的
可选的
default
rect
circ
poly
_blank
_parent
_self
_top
实例
带有可点击区域的图像映射:
<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" /> <map name="planetmap" id="planetmap"> <area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" /> <area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" /> <area shape="rect" coords="0,110,260" href ="sun.html" alt="Sun" /> </map>