<map> 标签的 name 属性的值是图像映射使用的名称,请参考下述示例:
带有可点击区域的图像映射:
<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.gif">
<area shape="circle" coords="90,58,3" alt="Mercury" href="merglobe.gif">
<area shape="circle" coords="124,58,8" alt="Venus" href="venglobe.gif">
</map>
所有主流浏览器都支持 name 属性。
name 属性是必需的,规定图像映射的名称。
name 属性与 <img> 标签的 usemap 属性相关联,以创建图像与映射之间的关系。
无。
<map name="mapname">
值 | 描述 |
---|---|
mapname | 图像映射的名称。 |
HTML DOM 参考手册:HTML DOM Map name 属性
备案信息: 粤ICP备15087711号-2
Copyright © 2008-2024 啊嘎哇在线工具箱 All Rights.
本站所有资料来源于网络,版权归原作者所有,仅作学习交流使用,如不慎侵犯了您的权利,请联系我们。