解决方案:

方法1:在html中设置

<meta name="viewport" content="viewport-fit=cover,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    

方法2:oc代码解决

if #available(iOS11.0, *) {

    self.webview.scrollView.contentInsetAdjustmentBehavior= .never;

}

 

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-11-20
  • 2021-12-19
  • 2021-05-20
  • 2021-11-07
猜你喜欢
  • 2021-10-16
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-03-06
相关资源
相似解决方案