安溪网站制作,做建站较好的网站,保险销售的建设网站策划书,团队建设游戏网站x:设置或者是得到鼠标相对于目标事件的父元素的外边界在x坐标上的位置。 clientX:相对于客户区域的x坐标位置#xff0c;不包括滚动条#xff0c;就是正文区域。 offsetx#xff1a;设置或者是得到鼠标相对于目标事件的父元素的内边界在x坐标上的位置。 screenX:相对于用户屏…x:设置或者是得到鼠标相对于目标事件的父元素的外边界在x坐标上的位置。 clientX:相对于客户区域的x坐标位置不包括滚动条就是正文区域。 offsetx设置或者是得到鼠标相对于目标事件的父元素的内边界在x坐标上的位置。 screenX:相对于用户屏幕。 演示代码 table border1 cellpadding15 cellspacing15 styleposition:relative;left:100;top:100 trtd div οnclickshow() stylebackground:silver;cursor:hand Click here to show. /div /td/tr /table script function show(){ alert(window.event.x:window.event.x\nwindow.event.y:window.event.y\nevent.clientX:event.clientX\nevent.clientY:event.clientY\nevent.offsetX:event.offsetX\nevent.offsetY:event.offsetY\nwindow.event.screenX:window.event.screenX\nwindow.event.screenY:window.event.screenY); } /script转载于:https://www.cnblogs.com/hr2014/p/3779320.html