使用map标签选择图片区域

来源:互联网 发布:如何优化js代码 编辑:程序博客网 时间:2024/05/24 06:48

    html中map标签可以定位图片中某一区域

定义和用法

定义一个客户端图像映射。图像映射(image-map)指带有可点击区域的一幅图像。

实例

带有可点击区域的图像映射:

<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,0,110,260" href ="sun.html" alt="Sun" /></map>

使用  Imagination Image Map Editor,可以生成map文件


原创粉丝点击