Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
fuchunhui and yin1999 authored Aug 19, 2024
1 parent a3fbaa4 commit 0b989a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/htmlmeterelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ HTML {{HTMLElement("meter")}} 元素暴露 **`HTMLMeterElement`** 接口,其

## 实例属性

_也继承了其父接口 {{domxref("HTMLElement")}} 的属性。_
_还继承其父接口 {{domxref("HTMLElement")}} 的属性。_

- {{domxref("HTMLMeterElement.high")}}
- : 一个 `double` 表示高档部分的数值下限,反映 [`high`](/zh-CN/docs/Web/HTML/Element/meter#high) 属性。
Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/htmlmeterelement/labels/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ l10n:
### HTML

```html
<label id="label1" for="test">Label 1</label>
<label id="label1" for="test">标签 1</label>
<meter id="test" min="0" max="100" value="70">70</meter>
<label id="label2" for="test">Label 2</label>
<label id="label2" for="test">标签 2</label>
```

### JavaScript
Expand All @@ -29,7 +29,7 @@ l10n:
window.addEventListener("DOMContentLoaded", () => {
const meter = document.getElementById("test");
for (const label of meter.labels) {
console.log(label.textContent); // "Label 1" 和 "Label 2"
console.log(label.textContent); // “标签 1”和“标签 2”
}
});
```
Expand Down

0 comments on commit 0b989a9

Please sign in to comment.