aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/htmldivelement/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/htmldivelement/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/htmldivelement/index.html')
-rw-r--r--files/zh-cn/web/api/htmldivelement/index.html67
1 files changed, 67 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/htmldivelement/index.html b/files/zh-cn/web/api/htmldivelement/index.html
new file mode 100644
index 0000000000..b4bf0a0822
--- /dev/null
+++ b/files/zh-cn/web/api/htmldivelement/index.html
@@ -0,0 +1,67 @@
+---
+title: HTMLDivElement
+slug: Web/API/HTMLDivElement
+translation_of: Web/API/HTMLDivElement
+---
+<div>{{ APIRef("HTML DOM") }}</div>
+
+<p><strong><code>HTMLDivElement</code></strong> 接口提供了一些特殊属性(它也继承了通常的 {{domxref("HTMLElement")}} 接口)来操作 {{HtmlElement("div")}} 元素。</p>
+
+<p>{{InheritanceDiagram(600,120)}}</p>
+
+<h2 id="属性">属性</h2>
+
+<p><em>属性继承自父类,{{domxref("HTMLElement")}}。</em></p>
+
+<dl>
+ <dt>{{domxref("HTMLDivElement.align")}} {{obsolete_inline}}</dt>
+ <dd>这是一个 {{domxref("DOMString")}} 表示一个指示元素内容相对于周围内容的对齐方式的可枚举属性。可取的值有 <code>"left"</code>,<code>"right"</code>,<code>"justify"</code>,和 <code>"center"</code>。</dd>
+</dl>
+
+<h2 id="方法">方法</h2>
+
+<p><em>没有特有的方法;方法继承自父类,{{domxref("HTMLElement")}}。</em></p>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', "#htmldivelement", "HTMLDivElement")}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', "grouping-content.html#the-div-element", "HTMLDivElement")}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td>No change from {{SpecName("DOM2 HTML")}}.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('DOM2 HTML', 'html.html#ID-22445964', 'HTMLDivElement')}}</td>
+ <td>{{Spec2('DOM2 HTML')}}</td>
+ <td>No change from {{SpecName("DOM1")}}.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('DOM1', 'level-one-html.html#ID-22445964', 'HTMLDivElement')}}</td>
+ <td>{{Spec2('DOM1')}}</td>
+ <td>Initial definition.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.HTMLDivElement")}}</p>
+
+<h2 id="参见">参见</h2>
+
+<ul>
+ <li>此HTML元素实现了这个接口:{{ HTMLElement("div") }}。</li>
+</ul>