Skip to content

Commit

Permalink
[zh-cn]: create docs for HTMLHeadingElement
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchunhui committed Jul 30, 2024
1 parent 0bc612b commit 434ea28
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions files/zh-cn/web/api/htmlheadingelement/index.md
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>`,对应于此接口。

0 comments on commit 434ea28

Please sign in to comment.