您的位置:首页 > Web前端 > HTML

HTML <area> 标签 带有可点击区域的图像映射(图像映射指的是带有可点击区域的图像)

2016-01-12 13:28 1196 查看
例子:

<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>

<area> 标签定义图像映射内部的区域(图像映射指的是带有可点击区域的图像)。

<area> 元素始终嵌套在 <map> 标签内部。

注释: <img> 标签中的 usemap 属性与 <map> 元素中的 name 相关联,以创建图像与映射之间的关系。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: