单击iOS上的某些项目后,iFrame会滚动到顶部

时间:2019-07-04 08:57:51

标签: html ios iframe ionic4

我已经制作了有关该问题的视频:https://drive.google.com/open?id=10AhL2KUZpQJpsnkjuP_3y46mu3lQ0dTZ

您可以看到滚动工作正常。而且我也可以使用其他按钮和字段。该问题仅在iOS上(模拟器和测试设备中都存在),而在Android或浏览器中则没有。

我正在使用离子4和角和科尔多瓦。 代码如下:

<ion-content>
  <div id="shop-wrapper">
    <iframe scrolling="yes" id="shop" src="http://shop2.boettcher.ch/de/schnelleingabe.htm"></iframe>
  </div>
</ion-content>

还有CSS

#shop-wrapper{
  -webkit-overflow-scrolling: touch !important;
  overflow-y: scroll !important;
  height: 100%;
  width: 100%;
}
#shop-wrapper iframe{
  height: 100%;
  width: 100%;
}

我给您提供了正确的网址,以便您可以检查按钮上是否有异常。

我已经待了好几天了,迫切需要一些帮助。

0 个答案:

没有答案
相关问题