DOMRect()
DOMRect()
생성자는 새로운 DOMRect
객체를 생성합니다.
구문
js
new DOMRect(x, y, width, height);
매개변수
x
-
DOMRect
원점의 X 좌표입니다. y
-
DOMRect
원점의 Y 좌표입니다. width
-
DOMRect
의 너비입니다. height
-
DOMRect
의 높이입니다.
반환 값
새로운 DOMRect
객체.
명세
Specification |
---|
Geometry Interfaces Module Level 1 # dom-domrect-domrect |
브라우저 호환성
BCD tables only load in the browser