x,y和clientX,clientY有什么区别
x,y和clientX,clientY有什么区别,我看了msdn上的:
clientX:Sets or retrieves the x-coordinate of the mouse pointer's position relative to the client area of the window, excluding window decorations and scroll bars.
X:Sets or retrieves the x-coordinate, in pixels, of the mouse pointer's position relative to the parent element.不过我现在再一个位置固定的div(left=20)中为什么x和clientx的值一直是一样的?