Home
Web Front-end
JS Tutorial
Implementation code to obtain the relative position of the mouse in a div_javascript skills



Implementation code to obtain the relative position of the mouse in a div_javascript skills
relative position
mouse
复制代码 代码如下:
我是DIV,经测试,有2PX的误差...
当前鼠标坐标为:
X:
Y: