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