-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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-TW]: update the <fencedframe>
element
#25295
base: main
Are you sure you want to change the base?
Conversation
Preview URLs Flaws (60)URL:
External URLs (4)URL:
(comment last updated: 2025-01-16 05:01:08) |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@@ -2,7 +2,7 @@ | |||
title: <fencedframe>:圍欄頁框元素 | |||
slug: Web/HTML/Element/fencedframe | |||
l10n: | |||
sourceCommit: 5618052b7314a29552ff9e4331dd3da13dc19f5e | |||
sourceCommit: 783ffd9c1cf35421242e028a1b8743cf2b1918dd |
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.
有两次新的提交,也请合进来吧
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.
还有一些问题
|
||
然而,試圖通過 API 調用(例如 {{domxref("HTMLElement.focus()")}})是被禁止的——惡意腳本可以使用一系列這樣的調用來跨越邊界洩露推斷的信息。 | ||
|
||
## 定位和縮放 | ||
|
||
作為[替換元素](/zh-TW/docs/Web/CSS/Replaced_element),可以使用 {{cssxref("object-position")}} 和 {{cssxref("object-fit")}} 屬性來調整 `<iframe>` 元素框中嵌入文檔的位置、對齊和縮放。 | ||
作為一個[替換元素](/zh-TW/docs/Web/CSS/Replaced_element),`<fencedframe>` 允許使用 {{cssxref("object-position")}} 屬性調整嵌入文件在其框內的位置。 |
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.
作為一個[替換元素](/zh-TW/docs/Web/CSS/Replaced_element),`<fencedframe>` 允許使用 {{cssxref("object-position")}} 屬性調整嵌入文件在其框內的位置。 | |
作為[替換元素](/zh-TW/docs/Web/CSS/Replaced_element),`<fencedframe>` 允許使用 {{cssxref("object-position")}} 屬性調整嵌入文件在其框內的位置。 |
> [!NOTE] | ||
> | ||
> {{cssxref("object-fit")}} 屬性對 `<fencedframe>` 元素沒有影響。 |
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.
请使用老格式,预览页渲染的样式不是我们希望看到的
> [!NOTE] | |
> | |
> {{cssxref("object-fit")}} 屬性對 `<fencedframe>` 元素沒有影響。 | |
> **備註:** {{cssxref("object-fit")}} 屬性對 `<fencedframe>` 元素沒有影響。 |
|
||
嵌入內容的大小可以由 `<fencedframe>` 的 {{domxref("HTMLFencedFrameElement.config", "config")}} 物件的內部 `contentWidth` 和 `contentHeight` 屬性設置。在這種情況下,改變 `<fencedframe>` 的 `width` 或 `height` 將改變頁面上嵌入容器的大小,但容器內部的文件將被視覺縮放以適應。嵌入文件的報告寬度和高度(即 {{domxref("Window.innerWidth")}} 和 {{domxref("Window.innerHeight")}})將保持不變。 | ||
|
||
## 無障礙議題 |
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.
## 無障礙議題 | |
## 無障礙 |
|
||
## 無障礙議題 | ||
|
||
使用輔助技術,如螢幕閱讀器的人,可以使用 `<fencedframe>` 上的 [`title` 屬性](/zh-TW/docs/Web/HTML/Global_attributes/title) 來標記其內容。標題的值應該簡要描述嵌入的內容: |
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.
使用輔助技術,如螢幕閱讀器的人,可以使用 `<fencedframe>` 上的 [`title` 屬性](/zh-TW/docs/Web/HTML/Global_attributes/title) 來標記其內容。標題的值應該簡要描述嵌入的內容: | |
使用輔助技術,如螢幕閱讀器的人,可以使用 `<fencedframe>` 的 [`title` 屬性](/zh-TW/docs/Web/HTML/Global_attributes/title)來標記其內容。標題的值應該簡要描述嵌入的內容: |
<fencedframe>
element
Description
Motivation
Additional details
Related issues and pull requests