主题
PageResizeEvent 继承自: Event['BasePage']
当所在窗口或浏览器尺寸发生变化时触发的事件。
通常用于根据尺寸变化动态调整布局,例如在响应式设计中在紧凑视图与展开视图之间切换。
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
width | float | required | The new width of the page in logical pixels. |
height | float | required | The new height of the page in logical pixels. |