-
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]: add translation for
ShadowRoot.fullscreenElement
& sync fo…
…r other three pages (#23760)
- Loading branch information
1 parent
6bc2cd6
commit fa5a827
Showing
4 changed files
with
37 additions
and
3 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
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
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
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,34 @@ | ||
--- | ||
title: ShadowRoot:fullscreenElement 属性 | ||
slug: Web/API/ShadowRoot/fullscreenElement | ||
l10n: | ||
sourceCommit: f2f9346c0c0e9f6676f2df9f1850933e274401de | ||
--- | ||
|
||
{{APIRef("Shadow DOM")}} | ||
|
||
{{domxref("ShadowRoot")}} 接口的 **`fullscreenElement`** 只读属性返回影子树中当前全屏显示的元素。 | ||
|
||
## 值 | ||
|
||
当前以全屏模式显示的 {{domxref('Element')}},若无全屏元素则为 `null`。 | ||
|
||
## 示例 | ||
|
||
```js | ||
let customElem = document.querySelector("my-shadow-dom-element"); | ||
let shadow = customElem.shadowRoot; | ||
let fullscreenElem = shadow.fullscreenElement; | ||
``` | ||
|
||
## 规范 | ||
|
||
{{Specifications}} | ||
|
||
## 浏览器兼容性 | ||
|
||
{{Compat}} | ||
|
||
## 参见 | ||
|
||
- {{domxref("Document.fullscreenElement")}} |