DOMRect()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
DOMRect()
생성자는 새로운 DOMRect
객체를 생성합니다.
구문
js
new DOMRect(x, y, width, height);
매개변수
반환 값
새로운 DOMRect
객체.
명세
Specification |
---|
Geometry Interfaces Module Level 1 # dom-domrect-domrect |
브라우저 호환성
BCD tables only load in the browser