Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-cn]: create docs for HTMLHRElement #22815

Merged
merged 4 commits into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions files/zh-cn/web/api/htmlhrelement/index.md
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")}}