-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[zh-cn]: create docs for HTMLHeadingElement
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: HTMLHeadingElement | ||
slug: Web/API/HTMLHeadingElement | ||
l10n: | ||
sourceCommit: b3e92f9e0724a177977560b51673b391bfdfc5e4 | ||
--- | ||
|
||
{{ APIRef("HTML DOM") }} | ||
|
||
**`HTMLHeadingElement`** 接口表示不同的标题元素,[从 `<h1>` 到 `<h6>`](/zh-CN/docs/Web/HTML/Element/Heading_Elements),它从 {{domxref("HTMLElement")}} 接口继承方法和属性。 | ||
|
||
{{InheritanceDiagram}} | ||
|
||
## 实例属性 | ||
|
||
_从其父接口 {{domxref("HTMLElement")}} 继承属性。_ | ||
|
||
- {{domxref("HTMLHeadingElement.align")}} {{deprecated_inline}} | ||
- : 表示枚举属性的字符串,指示标题内容相对于周围上下文的对齐。可能的值有 `"left"`、`"right"`、`"justify"` 和 `"center"`。 | ||
|
||
## 实例方法 | ||
|
||
_没有特定的方法,从其父接口 {{domxref("HTMLElement")}} 继承方法。_ | ||
|
||
## 规范 | ||
|
||
{{Specifications}} | ||
|
||
## 浏览器兼容性 | ||
|
||
{{Compat}} | ||
|
||
## 参见 | ||
|
||
- {{HTMLElement("Heading_Elements", "HTML 标题元素")}},从 `<h1>` 到 `<h6>`,对应于此接口。 |