- 0133技术站
- 联系QQ:88526
- QQ交流群

- 微信公众号

与元素相关联的的 image map 的部分 URL(以 '#' 开始的部分)。具有的属性值:
#mapname:一个 hash 字符 ("#") 加上要使用的 <map> 元素的 name 或 id
所有主流浏览器都支持 usemap 属性。
无。
<img usemap="#mapname">
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p>点击太阳或其他行星,注意变化:</p> <img src="http://ss.0133.cn/upload/image/885/902/932/1553322045901285.gif" width="145" height="126" alt="Planets" usemap="#planetmap"> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" alt="Sun" href="https://public.xp.cn/down/course_demo/html/area_tabs/sun.htm"> <area shape="circle" coords="90,58,3" alt="Mercury" href="https://public.xp.cn/down/course_demo/html/area_tabs/mercur.htm"> <area shape="circle" coords="124,58,8" alt="Venus" href="https://public.xp.cn/down/course_demo/html/area_tabs/venus.htm"> </map> </body> </html>
点击 "运行实例" 按钮查看在线实例
推荐手册