Viewport 接口
¥Viewport interface
签名
¥Signature
export interface Viewport
属性
¥Properties
属性 | 修饰符 | 类型 | 描述 | 默认 |
|---|---|---|---|---|
| deviceScaleFactor |
| 数字 | 指定设备比例因子。有关详细信息,请参阅 devicePixelRatio。 评论: 将此值设置为 |
|
| hasTouch |
| boolean | 指定视口是否支持触摸事件。 |
|
| height | 数字 | 以 CSS 像素为单位的页面高度。 评论: 将此值设置为 | ||
| isLandscape |
| boolean | 指定视口是否处于横向模式。 |
|
| isMobile |
| boolean | 是否考虑 |
|
| width | 数字 | 以 CSS 像素为单位的页面宽度。 评论: 将此值设置为 |