Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iframe background image showing fine in Firefox but not in IE

Why IE not showing BG mage like firefox in Iframe?

I do not have access of iframed page.

any CSS or javascript solution

like image 610
Jitendra Vyas Avatar asked Jan 13 '10 11:01

Jitendra Vyas


1 Answers

As well as adding the CSS style background-color:transparent; to the iframe document's body element, you will also need to add the allowtransparency attribute to the iframe element in the containing document.

See http://msdn.microsoft.com/en-us/library/ms533072(VS.85).aspx for more information.

If you can't modify the iframe's document then you are out of luck. Maybe there's another source you can use for the data that provides it in a different format such as XML or JSON?

like image 188
Andy E Avatar answered Nov 01 '22 16:11

Andy E