源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <object data="planets.gif" width="145" height="126" usemap="#planetmap"></object> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" alt="Sun" href="sun.htm"> <area shape="circle" coords="90,58,3" alt="Mercury" href="mercur.htm"> <area shape="circle" coords="124,58,8" alt="Venus" href="venus.htm"> </map> <p><b>注意:</b> Chrome, Safari 和 Opera不支持 object的usemap属性</p> </body> </html>
运行结果