找本参考书: 这些都是Event的参数,但一些只在IE4.0+上有用。 clientX X location in a window x X location in a positioned item offsetX X location in a container screenX X location in the screen 以上还有一个相对应的Y。 还有好几个: shiftKey Keyboard modifier keys srcElement Element the event was targeted to type Type of event that occurred wheelDelta The distance the wheel button rolled keyCode Keyboard key that caused the event button Mouse button that caused the event 找本书! Inside JavaScript By Steven Holzner Publisher : New Riders Publishing Pub Date : August 31, 2002 ISBN : 0-7357-1285-9 Pages : 1100
这些都是Event的参数,但一些只在IE4.0+上有用。
clientX X location in a window
x X location in a positioned item
offsetX X location in a container
screenX X location in the screen
以上还有一个相对应的Y。
还有好几个:
shiftKey Keyboard modifier keys
srcElement Element the event was targeted to
type Type of event that occurred
wheelDelta The distance the wheel button rolled
keyCode Keyboard key that caused the event
button Mouse button that caused the event
找本书!
Inside JavaScript
By Steven Holzner
Publisher : New Riders Publishing
Pub Date : August 31, 2002
ISBN : 0-7357-1285-9
Pages : 1100
offsetLeft 属性:返回相对于版面或父节点的左偏移量
pixelLeft 属性:设置或返回对象左边的象素点距
clientX 属性:设置或返回相对于 从窗口的鼠标指针的x轴坐标值,包括滚动条或装饰条在内.