-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 HTMLHRElement
- Loading branch information
Showing
1 changed file
with
43 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,43 @@ | ||
--- | ||
title: HTMLHRElement | ||
slug: Web/API/HTMLHRElement | ||
l10n: | ||
sourceCommit: c5f403bb08c91ae77ddfe47f937438fb5e6fcae5 | ||
--- | ||
|
||
{{APIRef("HTML DOM")}} | ||
|
||
**`HTMLHRElement`** 接口提供特定的属性(除了常规 {{domxref("HTMLElement")}} 接口之外,它还可以通过继承来使用),用于操作 {{HTMLElement("hr")}} 元素。 | ||
|
||
{{InheritanceDiagram}} | ||
|
||
## 实例属性 | ||
|
||
_从其父接口 {{domxref("HTMLElement")}} 继承属性。_ | ||
|
||
- {{domxref("HTMLHRElement.align")}} {{deprecated_inline}} | ||
- : 表示枚举属性的字符串,指示规则相对于周围上下文的对齐。 | ||
- {{domxref("HTMLHRElement.color")}} {{deprecated_inline}} | ||
- : 表示规则颜色名称的字符串。 | ||
- {{domxref("HTMLHRElement.noShade")}} {{deprecated_inline}} | ||
- : 布尔值,将规则设置为无遮挡。 | ||
- {{domxref("HTMLHRElement.size")}} {{deprecated_inline}} | ||
- : 表示规则高度的字符串。 | ||
- {{domxref("HTMLHRElement.width")}} {{deprecated_inline}} | ||
- : 表示页面上规则宽度的字符串。 | ||
|
||
## 实例方法 | ||
|
||
_没有特定的方法,从其父接口 {{domxref("HTMLElement")}} 继承方法。_ | ||
|
||
## 规范 | ||
|
||
{{Specifications}} | ||
|
||
## 浏览器兼容性 | ||
|
||
{{Compat}} | ||
|
||
## 参见 | ||
|
||
- 实现此接口的 HTML 元素:{{HTMLElement("hr")}} |