iframe size on iPad

后端 未结 2 1698
一生所求
一生所求 2020-12-31 17:30

I have an HTML file as follows;

2条回答
  •  佛祖请我去吃肉
    2020-12-31 18:27

    Starting in version 4.2.1 of Safari iOS, and still going as of 4.3.3, the entire content of an iFrame is forcibly shown. If your iFrame's content is in the same security sandbox as the outer page, you can surround the iframe with a div tag and use that to do the scrolling.

    This fiddle doesn't work because of security sandbox restrictions, but it should work find for you if both pages have the same domain: iPad iFrame single finger scrolling

提交回复
热议问题