From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/htmltableelement/rows/index.html | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 files/ja/web/api/htmltableelement/rows/index.html (limited to 'files/ja/web/api/htmltableelement/rows') diff --git a/files/ja/web/api/htmltableelement/rows/index.html b/files/ja/web/api/htmltableelement/rows/index.html new file mode 100644 index 0000000000..b201809a2e --- /dev/null +++ b/files/ja/web/api/htmltableelement/rows/index.html @@ -0,0 +1,29 @@ +--- +title: HTMLTableElement.rows +slug: Web/API/HTMLTableElement/rows +tags: + - DOM + - Gecko + - Gecko DOM Reference +translation_of: Web/API/HTMLTableElement/rows +--- +
+ {{ApiRef}}
+

概要

+

rows は、テーブル内の全てののコレクションを返します。

+

構文

+
HTMLCollectionObject = table.rows
+

+
var mytable = document.getElementById("mytable");
+
+var myrows = mytable.rows; // mytable の行コレクション
+var firstRow = mytable.rows[0]; // mytable の最初の行
+var lastRow = mytable.rows[ mytable.rows.length - 1 ]; // mytable の最後の行
+

注記

+

Table オブジェクトの rows プロパティによって返されるコレクションには {{htmlelement("thead")}} 内、{{htmlelement("tfoot")}} 内、{{htmlelement("tfoot")}} 内、{{htmlelement("tbody")}} 内の、全ての行が含まれます。

+

テーブルセクション要素 (theadtfoottbody) の rows プロパティには、そのテーブルセクション要素の行のみが含まれます。

+

仕様書

+ -- cgit v1.2.3-54-g00ecf