Ewarm

最近在做taro项目遇到webView嵌套页面,页面滚动失效,并且页面在屏幕高度以外被截断了。

解决方法如下:

1.webView外层的position原本被设置为了fixed,修改文档流为=>position:static

2.ifame父级设置=>overflow:auto或者overflow-y: scroll;-webkit-overflow-scrolling: touch

3.设置ifame属性为

<iframe scrolling=\'yes\'></iframe> 

点赞

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-06-15
  • 2021-11-27
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-19
  • 2022-12-23
  • 2021-06-09
  • 2021-06-17
  • 2021-11-01
  • 2021-03-31
  • 2021-01-25
相关资源
相似解决方案