DOMPoint 接口的 y property holds the vertical coordinate, y , for a point in space. Unless transforms have been applied to alter the orientation, the value of y increases downward and decreases upward.

句法

var yPos = DOMPoint.y;
					

A double-precision floating-point value indicating the y coordinate's value for the point. This value is unrestricted , meaning that it is allowed to be infinite or invalid (that is, its value may be NaN or ±Infinity ).

规范

规范 状态 注释
Geometry Interfaces Module Level 1
The definition of 'y' in that specification.
候选推荐 初始定义

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
y Chrome 61 Edge 79 Firefox 31 IE No Opera 48 Safari 10.1 WebView Android 61 Chrome Android 61 Firefox Android 31 Opera Android 45 Safari iOS 10.3 Samsung Internet Android 8.0

图例

完整支持

完整支持

不支持

不支持

另请参阅

  • The other coordinate properties: x , z , and the perspective value, w .

元数据

  • 最后修改: