MouseEvent.offsetY
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
MouseEvent 接口的只读属性 offsetY 规定了事件对象与目标节点的内填充边(padding edge)在 Y 轴方向上的偏移量。
语法
var yOffset = instanceOfMouseEvent.offsetY;
返回值
一个双精度
浮点值。早期的规范将其规定为整数值。详见浏览器兼容性部分。
规范
Specification |
---|
CSSOM View Module # dom-mouseevent-offsety |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
offsetY |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.