jquery 获得鼠标指针 X/Y 值
生活随笔
收集整理的這篇文章主要介紹了
jquery 获得鼠标指针 X/Y 值
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
$(document).ready(function() {
??$().mousemove(function(e) {
?? ?// display the x and y axis values inside the div with the id XY
?? ?$('#XY').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
??});
});
<div id="XY"></div>
轉(zhuǎn)載于:https://www.cnblogs.com/GeorgeWang/archive/2011/02/20/1958972.html
總結(jié)
以上是生活随笔為你收集整理的jquery 获得鼠标指针 X/Y 值的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HTML转PDF(C#---itexts
- 下一篇: Name与x:Name的关系--转载