收藏
回答

华为畅享平板AGS2-W09中获取的设备screenwidth为400导致样式出错

框架类型 问题类型 终端类型 微信版本 基础库版本
小程序 Bug 微信安卓客户端 7.0.19 2.13.2

{"locationEnabled":true,"screenWidth":400,"benchmarkLevel":7,"screenHeight":618,"windowHeight":554,"bluetoothEnabled":false,"language":"zh_CN","microphoneAuthorized":true,"version":"7.0.19","cameraAuthorized":true,"system":"Android 9","fontSizeSetting":16,"locationAuthorized":true,"pixelRatio":3,"notificationAuthorized":true,"model":"AGS2-W09","statusBarHeight":16,"deviceOrientation":"portrait","wifiEnabled":true,"safeArea":{"width":400,"right":400,"top":0,"left":0,"bottom":618,"height":618},"brand":"HUAWEI","windowWidth":400,"screenTop":64,"platform":"android","SDKVersion":"2.13.2","devicePixelRatio":3}

这是在用户设备上获取到的系统信息,原平板像素应该是1920X1200, 这里获取到的screenWidth为400,devicePixelRatio为3,导致原来写的450px媒体查询样式失效

回答关注问题邀请回答
收藏
登录 后发表内容
问题标签