最佳答案
您可以通过在线 map 工具为您的图像做到这一点。
我试图从 this 映射您的图像关联。
您可以看到我在几个点上创建了一个可点击的链接,并将自定义文本设置为悬停时显示文本的标题。
希望对您有所帮助。谢谢。
<img id="Image-Maps-Com-image-maps-2017-04-25-084654" src="/image/FbxJg.png" border="0" width="286" height="322" orgWidth="286" orgHeight="322" usemap="#image-maps-2017-04-25-084654" alt="" />
<map name="image-maps-2017-04-25-084654" id="ImageMapsCom-image-maps-2017-04-25-084654">
<area alt="" title="custom-text" href="http://www.image-maps.com/" shape="rect" coords="228,156,255,181" style="outline:none;" target="_self" />
<area alt="" title="custom-text" href="http://www.image-maps.com/" shape="rect" coords="129,173,156,198" style="outline:none;" target="_self" />
<area shape="rect" coords="284,320,286,322" alt="Image Map" style="outline:none;" title="Image Map" href="http://www.image-maps.com/index.php?aff=mapped_users_0" />
</map>
关于javascript - 使用 javascript 图像上的可点击点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43611009/