From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../zh-cn/web/api/htmltableelement/rows/index.html | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 files/zh-cn/web/api/htmltableelement/rows/index.html (limited to 'files/zh-cn/web/api/htmltableelement/rows') diff --git a/files/zh-cn/web/api/htmltableelement/rows/index.html b/files/zh-cn/web/api/htmltableelement/rows/index.html new file mode 100644 index 0000000000..af8619af5e --- /dev/null +++ b/files/zh-cn/web/api/htmltableelement/rows/index.html @@ -0,0 +1,37 @@ +--- +title: HTMLTableElement.rows +slug: Web/API/HTMLTableElement/rows +tags: + - HTML Table Element + - HTMLTableElement.cells + - HTMLTableElement.rows +translation_of: Web/API/HTMLTableElement/rows +--- +
+
+
{{APIRef("HTML DOM")}}
+ +
表中所有行的
+
+
+ +

HTMLTableElement.rows 只读属性返回表中所有行的一个活的 {{domxref("HTMLCollection")}}。HTMLTableElement.rows 包括与之相关的{{HTMLElement("thead")}}, {{HTMLElement("tfoot")}} 和 {{HTMLElement("tbody")}} 元素.

+ +

Although the property is read-only, the returned object is live and allows the modification of its content.

+ +

Syntax

+ +
HTMLCollectionObject = table.rows
+ +

Example

+ +
myrows = mytable.rows;
+firstRow = mytable.rows[0];
+lastRow = mytable.rows[mytable.rows.length-1];
+ +

Specification

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