用html中的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>
area中的属性:

来源:CSDN
作者:若年封尘
链接:https://blog.csdn.net/zag666/article/details/103143595