From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/touch/screenx/index.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 files/zh-cn/web/api/touch/screenx/index.html (limited to 'files/zh-cn/web/api/touch/screenx') diff --git a/files/zh-cn/web/api/touch/screenx/index.html b/files/zh-cn/web/api/touch/screenx/index.html new file mode 100644 index 0000000000..ef9ac6d9e0 --- /dev/null +++ b/files/zh-cn/web/api/touch/screenx/index.html @@ -0,0 +1,28 @@ +--- +title: Touch.screenX +slug: Web/API/Touch/screenX +tags: + - touch +translation_of: Web/API/Touch/screenX +--- +

{{ ApiRef() }}

+

概述

+

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

+

语法

+
var x = touchItem.screenX;
+
+

返回值

+
+
+ x
+
+ 触点相对于屏幕左边沿的的X坐标. 不包含页面滚动的偏移量.
+
+

标准定义

+

Touch Events Specification

+

相关链接

+ -- cgit v1.2.3-54-g00ecf