通过鼠标点击获取图像映射的坐标 [英] Getting coordinates of an image map with a mouse click
本文介绍了通过鼠标点击获取图像映射的坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个html图像地图,当用户点击地图时,我想要得到坐标。
I have an html image map and I want to get the coordinates when a user clicks on the map.
有没有办法检索地图
推荐答案
您可以使用JQuery库并执行以下操作: / p>
You could use the JQuery library and do the following:
$(".link").click(function(e){
e.pageX;
e.pageY;
}
这篇关于通过鼠标点击获取图像映射的坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文