Here's the full breakdown:
Playback steps:
Create a page with position:relative in the html element
<html style="position:relative"> <head></head> <body>TEST</body> </html>
Here's a test page in a script that does just that:
Now use this page inside iFrame and open in IE8
<html> <head></head> <body> <iframe src="http://jsfiddle.net/KyleMit/DZbt5/show/light/"></iframe> </body> </html>
Decision:
As the previous answer suggests, you can remove position:relative from the original html page, but you may not have access to the page or be able to change it.
Instead, you can simply add a relative position to the iframe element itself:
iframe { position: relative; }
Other instances
The question was also asked here:
- IFrame content not showing in IE8
- Empty iFrame in IE
Kylemit
source share