Skip to content

PageResizeEvent 继承自: Event['BasePage']

当所在窗口或浏览器尺寸发生变化时触发的事件。

通常用于根据尺寸变化动态调整布局,例如在响应式设计中在紧凑视图与展开视图之间切换。

属性 ​

名称类型默认值说明
widthfloatrequiredThe new width of the page in logical pixels.
heightfloatrequiredThe new height of the page in logical pixels.

关注我,学习大模型、大数据、Python等热门技术。