HTMLFencedFrameElement:height 属性
Deprecated
To be removed
This feature is pending removal from browsers. Using it now may lead to broken functionality in future updates.
Following the announcement that Chrome will maintain its current approach to third-party cookies, Chrome decided to withdraw certain Privacy Sandbox features including the <fencedframe> element and related APIs.
>
HTMLFencedFrameElement 的 height 属性用于获取并设置对应 <fencedframe> 元素的 height 属性的值,该属性指定了元素的高度。
嵌入内容的尺寸可能由 <fencedframe> 的 config 对象的内部 contentWidth 和 contentHeight 属性设置。在这种情况下,更改 <fencedframe> 的 width 或 height 将改变页面上嵌入容器的大小,但容器内的文档将按比例缩放以适应新的尺寸。嵌入文档报告的宽度和高度(即 Window.innerWidth 和 Window.innerHeight)将保持不变。