From 785c0b7c8adc9e73cfd07817009c4437255c9398 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 10 Mar 2021 16:18:46 +0000 Subject: [CRON] sync translated content --- .../mselementsfromrect/index.html | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html (limited to 'files/ja/orphaned/web') diff --git a/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html b/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html new file mode 100644 index 0000000000..a9c431e07a --- /dev/null +++ b/files/ja/orphaned/web/api/documentorshadowroot/mselementsfromrect/index.html @@ -0,0 +1,55 @@ +--- +title: DocumentOrShadowRoot.msElementsFromRect() +slug: orphaned/Web/API/DocumentOrShadowRoot/msElementsFromRect +tags: + - API + - API:Microsoft Extensions + - Method + - Non-standard + - Reference + - msElementsFromRect +translation_of: Web/API/DocumentOrShadowRoot/msElementsFromRect +original_slug: Web/API/DocumentOrShadowRoot/msElementsFromRect +--- +
{{APIRef("Microsoft Extensions")}}{{Non-standard_Header}}
+ +

msElementsFromRect メソッドは、left、 top、 width、 heighで定義された四角形の下にある要素のノードリストを返します。

+ +

この独自プロパティは Internet Explorer と Microsoft Edge に固有のものです。

+ +

構文

+ +
object.msElementsFromRect(left, top, width, height, retVal)
+
+ +

パラメータ

+ +
+
left [in]
+
型: 浮動小数点
+
top[in]
+
型: 浮動小数点
+
width[in]
+
型: 浮動小数点
+
height [in]
+
型: 浮動小数点
+
retVal [out, reval]
+
型: ノードリスト
+
+ +

+ +

特定のポイントの下にある全ての要素を検索するには、 msElementsFromPoint(x, y) を使用します。長方形を交差する全ての要素を見つけるには、 msElementsFromRect(top, left, width, height) を使用します。

+ +
var nodeList = document.msElementsFromRect(x,y,width,height)
+var nodeList = document.msElementsFromPoint(x,y)
+
+ +

返された nodeList には z-index でソートされているため、要素の相対的なスタック順序を確認できます。

+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf