blob: afd76c8ba7ad0a12db6777a720c7db92966f5906 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
---
title: Touch.screenX
slug: Web/API/Touch/screenX
tags:
- touch
translation_of: Web/API/Touch/screenX
---
<p>{{ ApiRef() }}</p>
<h3 id="Summary" name="Summary">概述</h3>
<p>返回触点相对于屏幕左边沿的的X坐标. 不包含页面滚动的偏移量.</p>
<h3 id="Syntax" name="Syntax">语法</h3>
<pre class="eval">var <em>x</em> = <em>touchItem</em>.screenX;
</pre>
<h3 id="Return_Value" name="Return_Value">返回值</h3>
<dl>
<dt>
<code>x</code></dt>
<dd>
触点相对于屏幕左边沿的的X坐标. 不包含页面滚动的偏移量.</dd>
</dl>
<h3 id="Specification" name="Specification">标准定义</h3>
<p><a class="external" href="http://www.w3.org/TR/touch-events/">Touch Events Specification</a></p>
<h3 id="相关链接">相关链接</h3>
<ul>
<li>{{ domxref("Touch.screenY") }}</li>
<li>{{ domxref("Touch.clientX") }}</li>
<li>{{ domxref("Touch.pageX") }}</li>
</ul>
|