• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • 参考手册
    • 概述 / Web 技术

      适用于开发者的 Web 技术参考手册

    • HTML

      Web 内容的结构

    • CSS

      用于描述文档样式的代码

    • JavaScript

      通用脚本语言

  • 开发指南
    • 概述 / MDN 学习区

      学习 Web 开发

    • MDN 学习区

      学习 Web 开发

    • HTML

      学习使用 HTML 构建 Web 内容

    • CSS

      学习使用 CSS 设置内容样式

    • JavaScript

      学习在浏览器中运行脚本

  • 更多中文网
  1. 面向开发者的 Web 技术
  2. 网络 API
  3. MouseEvent
  4. x

目录

  • Specifications
  • Browser compatibility
  1. UI Events
  2. MouseEvent
  3. Constructor
    1. MouseEvent()
  4. Static properties
    1. WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN Non-standard
    2. WEBKIT_FORCE_AT_MOUSE_DOWN Non-standard
  5. Instance properties
    1. altKey
    2. button
    3. buttons
    4. clientX
    5. clientY
    6. ctrlKey
    7. layerX Non-standard
    8. layerY Non-standard
    9. metaKey
    10. movementX
    11. movementY
    12. mozInputSource Non-standard
    13. offsetX
    14. offsetY
    15. pageX
    16. pageY
    17. relatedTarget
    18. screenX
    19. screenY
    20. shiftKey
    21. webkitForce Non-standard
    22. x
    23. y
  6. Instance methods
    1. getModifierState()
    2. initMouseEvent() Deprecated
  7. Inheritance
    1. UIEvent
    2. Event
  8. Related pages for UI Events
    1. CompositionEvent
    2. FocusEvent
    3. InputEvent
    4. KeyboardEvent
    5. MouseScrollEvent Non-standard Deprecated
    6. MutationEvent Deprecated
    7. UIEvent
    8. WheelEvent

目录

  • Specifications
  • Browser compatibility

MouseEvent: x property

The MouseEvent.x property is an alias for the MouseEvent.clientX property.

Specifications

Specification
CSSOM View Module
# dom-mouseevent-x

Browser compatibility

BCD tables only load in the browser

MDN Web 中文网 - 粤ICP备13048890号