I have seen many posts about iOS traditionally not supporting scrolling iFrames
, like most desktop browsers, however most of the posts are quite old. They reference iOS 4 and iOS 6.
With iOS 7 and iOS 8, is there any way to embed an iFrame
(lets say as an example, a PDF, into a web-page that would be loaded by the native webkit
, rendering engine)?
Here are the techniques which I have tried, but have not worked:
- Adding
-webkit-overflow-scrolling:touch
into theiFrame
- Setting the
iFrame
's overflow toauto
orscroll
- Embedding the
iFrame
within adiv
(the problems here are that the div scrolls to the height of theiFrame
, but theiFrame
height has to be exactly the height of the document for this to work perfectly)
Sample HTML:
<iframe src="file.pdf"></iframe>
Any ideas?