Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blank iFrame in IE

I have an iframe:

<iframe src="http://externaldomain.com/something.html">

If something.html from externaldomain.com has the css:

html { position: relative; }

In IE, it will render the iframe as blank. All other browser are fine.

Anyone know of a solution? Remember the same origin policy. I cannot alter anything within the iframe with javascript or change the css as the iframe src is external.

Thanks.

like image 301
Josh R Avatar asked Dec 14 '10 20:12

Josh R


1 Answers

Use the following syntax it will work.

Give the style="position:relative;" to your iframe it will work in IE.

like image 130
Vijender Reddy Avatar answered Nov 12 '22 15:11

Vijender Reddy