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/pagex/index.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 files/zh-cn/web/api/touch/pagex/index.html (limited to 'files/zh-cn/web/api/touch/pagex/index.html') diff --git a/files/zh-cn/web/api/touch/pagex/index.html b/files/zh-cn/web/api/touch/pagex/index.html new file mode 100644 index 0000000000..ff6743a478 --- /dev/null +++ b/files/zh-cn/web/api/touch/pagex/index.html @@ -0,0 +1,28 @@ +--- +title: Touch.pageX +slug: Web/API/Touch/pageX +tags: + - touch +translation_of: Web/API/Touch/pageX +--- +

{{ ApiRef() }}

+

概述

+

触点相对于HTML文档左边沿的的X坐标. 和 clientX 属性不同, 这个值是相对于整个html文档的坐标, 和用户滚动位置无关. 因此当存在水平滚动的偏移时, 这个值包含了水平滚动的偏移.

+

语法

+
var x = touchItem.pageX;
+
+

返回值

+
+
+ x
+
+ 触点相对于HTML文档左边沿的的X坐标. 当存在水平滚动的偏移时, 这个值包含了水平滚动的偏移.
+
+

标准定义

+

Touch Events Specification

+

相关链接

+ -- cgit v1.2.3-54-g00ecf