• Skip to main content
  • Skip to search
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web 开发技术
  2. Web API 接口参考
  3. Touch
  4. Touch.screenY
  • Change language
  • View in English

Touch.screenY

概述

返回触点相对于屏幕上边沿的Y坐标. 不包含页面滚动的偏移量.

语法

var y = touchItem.screenY;

返回值

y
触点相对于屏幕上边沿的Y坐标. 不包含页面滚动的偏移量.

标准定义

Touch Events Specification

相关链接

  • Touch.screenX
  • Touch.clientY
  • Touch.pageY

Found a problem with this page?

  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Apr 18, 2021, by MDN contributors

Change your language

Related Topics

  1. Touch
  2. Constructor
    1. 这是一个实验性的 API,请尽量不要在生产环境中使用它。 Touch()
  3. 属性
    1. clientX
    2. clientY
    3. 这是一个实验性的 API,请尽量不要在生产环境中使用它。 force
    4. identifier
    5. pageX
    6. pageY
    7. 这是一个实验性的 API,请尽量不要在生产环境中使用它。 radiusX
    8. 这是一个实验性的 API,请尽量不要在生产环境中使用它。 radiusY
    9. 这是一个实验性的 API,请尽量不要在生产环境中使用它。 rotationAngle
    10. screenX
    11. screenY
    12. target
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

Mozilla

© 2005-2021 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies