非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
点
is an interface, which existed only briefly in the
CSS Transforms Level 1
specification, which represents a point in 2-dimensional space. It is non-standard, not broadly compatible, and should not be used.
Although it is not directly related to this defunct interface, you are probably looking for
DOMPoint
, which is part of the
Geometry Interfaces Module Level 1
规范。
x
A floating-point value specifying the point's position with respect to the X (horizontal) axis.
y
A floating-point value specifying the point's position with respect to the Y (vertical) axis.
This class was specified in the defunct 20 March 2009 Working Draft of CSS 2D Transforms Module Level 3 . It is not present in the current working draft of the CSS Transforms Level 1 规范。
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
点
弃用
非标
|
Chrome ? | Edge ≤18 | Firefox No | IE ? | Opera ? |
Safari
Yes
Prefixed
|
WebView Android ? | Chrome Android ? | Firefox Android No | Opera Android ? |
Safari iOS
Yes
Prefixed
|
Samsung Internet Android ? |
x
弃用
非标
|
Chrome ? | Edge ≤18 | Firefox No | IE ? | Opera ? | Safari Yes | WebView Android ? | Chrome Android ? | Firefox Android No | Opera Android ? | Safari iOS Yes | Samsung Internet Android ? |
y
弃用
非标
|
Chrome ? | Edge ≤18 | Firefox No | IE ? | Opera ? | Safari Yes | WebView Android ? | Chrome Android ? | Firefox Android No | Opera Android ? | Safari iOS Yes | Samsung Internet Android ? |
完整支持
不支持
兼容性未知
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
要求使用供应商前缀或不同名称。
Window.convertPointFromNodeToPage()
Window.convertPointFromPageToNode()
WebKitPoint
documentation at the IE Dev Center