-
Notifications
You must be signed in to change notification settings - Fork 8k
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]: update the translation of Fullscreen
API
#22047
base: main
Are you sure you want to change the base?
Conversation
Preview URLs Flaws (1)URL:
External URLs (1)URL:
|
|
||
- {{DOMxRef("Document.exitFullscreen()")}} | ||
- : 用于请求从全屏模式切换到窗口模式,会返回一个 {{jsxref("Promise")}},会在全屏模式完全关闭的时候被置为 resolved 状态。 | ||
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决。 | |
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后被兑现。 |
- : 请求浏览器(user agent)将特定元素(甚至延伸到它的后代元素)置为全屏模式,隐去屏幕上的浏览器所有 UI 元素,以及其他应用。返回一个 {{jsxref("Promise")}},并会在全屏模式被激活的时候变成 resolved 状态。 | ||
|
||
## 属性 | ||
- : 请求用户代理将指定元素(及其后代)置于全屏模式,移除所有浏览器的用户界面元素以及所有其他应用程序。返回一个 {{jsxref("Promise")}},在全屏模式激活后解决。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- : 请求用户代理将指定元素(及其后代)置于全屏模式,移除所有浏览器的用户界面元素以及所有其他应用程序。返回一个 {{jsxref("Promise")}},在全屏模式激活后解决。 | |
- : 请求用户代理将指定元素(及其后代)置于全屏模式,移除所有浏览器的用户界面元素以及所有其他应用程序。返回一个 {{jsxref("Promise")}},在全屏模式激活后被兑现。 |
- {{DOMxRef("DocumentOrShadowRoot.fullscreenElement")}} | ||
- : `fullscreenElement` 属性提供了当前在 DOM(或者 shadow DOM)里被展示为全屏模式的 {{DOMxRef("Element")}},如果这个值为 `null`,文档不处于全屏模式。 | ||
- {{DOMxRef("Document.fullscreenElement")}} / {{DOMxRef("ShadowRoot.fullscreenElement")}} | ||
- : `fullscreenElement` 属性告诉你当前在 DOM(或 shadow DOM)中以全屏模式显示的 {{DOMxRef("Element")}}。如果为 `null`,则文档(或 shadow DOM)不在全屏模式。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- : `fullscreenElement` 属性告诉你当前在 DOM(或 shadow DOM)中以全屏模式显示的 {{DOMxRef("Element")}}。如果为 `null`,则文档(或 shadow DOM)不在全屏模式。 | |
- : `fullscreenElement` 属性告诉你当前在 DOM(或影子 DOM)中以全屏模式显示的 {{DOMxRef("Element")}}。如果为 `null`,则文档(或影子 DOM)不在全屏模式。 |
|
||
> **备注:** 请改用 {{DOMxRef("ShadowRoot")}} 或 {{DOMxRef("Document")}} 上的 {{DOMxRef("Document.fullscreenElement", "fullscreenElement")}} 属性;如果它不是 null,则它是就是当前在全屏模式下显示的元素。 | ||
> **备注:** 使用 {{DOMxRef("Document.fullscreenElement", "fullscreenElement")}} 属性在 {{DOMxRef("Document")}} 或 {{DOMxRef("ShadowRoot")}} 上;如果它不为 `null`,则它是一个当前正在以全屏模式显示的 {{DOMxRef("Element")}}。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
奇怪的语序?
|
||
- {{DOMxRef("Document.exitFullscreen()")}} | ||
- : 用于请求从全屏模式切换到窗口模式,会返回一个 {{jsxref("Promise")}},会在全屏模式完全关闭的时候被置为 resolved 状态。 | ||
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决。 | |
- : 请求{{Glossary("user agent", "用户代理")}}从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决。 |
Description
Motivation
Additional details
Related issues and pull requests