1. 首页
  2. 大数据
  3. Netty
  4. IphoneX底部适配的实现

IphoneX底部适配的实现

上传者: 2020-12-16 23:50:13上传 PDF文件 22.76KB 热度 27次
1.判断是否是IPhoneX手机 let isIphone = /iphone/gi.test(window.navigator.userAgent) let windowW = window.screen.width let windowH = window.screen.height let pixelRatio = window.devicePixelRatio let isIPhoneX = isIphone && pixelRatio && pixelRatio === 3 && windowW === 375 && windowH === 812 let is
用户评论