Skip to content

Commit

Permalink
[zh-cn]: update the translation of Range startContainer property (#…
Browse files Browse the repository at this point in the history
…23115)

Co-authored-by: A1lo <[email protected]>
  • Loading branch information
T34-active and yin1999 authored Aug 18, 2024
1 parent aa4780a commit cd059cb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions files/zh-cn/web/api/range/startcontainer/index.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
title: Range.startContainer
title: RangestartContainer 属性
slug: Web/API/Range/startContainer
l10n:
sourceCommit: c58e8c1dd6ecbcb63894c7dd17fb9495b9511b4e
---

{{ApiRef("DOM")}}

Range.startContainer 是只读属性,返回 Range 开始的节点。要更改节点的起始位置,请使用 Range.setStart() 方法。
**`Range.startContainer`** 只读属性返回 `Range` 开始所在的 {{domxref("Node")}}。要更改节点的起始位置,请使用 {{domxref("Range.setStart()")}} 方法。

## Syntax
##

```plain
startRangeNode = range.startContainer;
```
{{domxref("Node")}} 对象。

## Example
## 示例

```js
range = document.createRange();
Expand All @@ -22,14 +22,14 @@ range.setEnd(endNode, endOffset);
startRangeNode = range.startContainer;
```

## Specifications
## 规范

{{Specifications}}

## Browser compatibility
## 浏览器兼容性

{{Compat}}

## See also
## 参见

- [The DOM interfaces index](/zh-CN/docs/DOM/DOM_Reference)
- [DOM 接口索引](/zh-CN/docs/Web/API/Document_Object_Model)

0 comments on commit cd059cb

Please sign in to comment.