Monday, August 10, 2015

Problem with iframes in iOS devices

iframes in iOS devices behave a little bit strange as you all knew. The content displays outside of the iframe. There are many way to fix that issue, here is a quick one:

Just replace the iframe tag with embed and everything will be fine.

<embed src="..." type="text/html" ...></embed>

Reference: http://stackoverflow.com/questions/10528760/iframe-content-is-displaying-outside-the-iframe-on-ios