aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmltableelement/createcaption/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/htmltableelement/createcaption/index.html
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/htmltableelement/createcaption/index.html')
-rw-r--r--files/zh-cn/web/api/htmltableelement/createcaption/index.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmltableelement/createcaption/index.html b/files/zh-cn/web/api/htmltableelement/createcaption/index.html
new file mode 100644
index 0000000000..86aa3ab21b
--- /dev/null
+++ b/files/zh-cn/web/api/htmltableelement/createcaption/index.html
@@ -0,0 +1,26 @@
+---
+title: HTMLTableElement.createCaption()
+slug: Web/API/HTMLTableElement/createCaption
+translation_of: Web/API/HTMLTableElement/createCaption
+---
+<div>
+<div>
+<div>{{APIRef("HTML DOM")}}</div>
+</div>
+</div>
+
+<p>这个 <code><strong>HTMLTableElement.createCaption()</strong></code> 方法返回这个 table 元素的 caption(HTMLTableCaptionElement). 如果这个 table 没有 caption,这个方法创建并返回 caption.</p>
+
+<h2 id="Syntax" name="Syntax">语法</h2>
+
+<pre class="syntaxbox">HTMLTableCaptionElement = table.createCaption()</pre>
+
+<h2 id="Example" name="Example">示例</h2>
+
+<pre class="brush:js;gutter:false;">mycap = mytable.createCaption();</pre>
+
+<h2 id="Specification" name="Specification">Specification</h2>
+
+<ul>
+ <li><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-96920263">createCaption</a></li>
+</ul>