简单教程
提交运行
代码编辑器:
<img id="planets" src="/static/i/img3.jpg" width="145" height="126" usemap="#planetmap"> <map name="planetmap"> <area id="venus" shape="circle" coords="124,58,8" alt="The planet Venus" href="/static/media/html/sun.html"> </map> <p>usemap属性的值: <script> document.write(document.getElementById("planets").useMap); </script> </p>
运行结果: