MouseEvent: offsetX

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 의 읽기 전용 속성인 offsetX 는 해당 이벤트와 대상 노드 내 여백 사이의 마우스 포인터의 수평 좌표를 제공합니다.

double 부동 소수 값을 가집니다.

이전 버전에서의 스펙은 정수로 정의되었습니다.

명세서

Specification
CSSOM View Module
# dom-mouseevent-offsetx

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
offsetX

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

같이 보기