Original iframe image that renders beautifully in Firefox but not in IE

Why doesn't IE show BG mage like firefox in iframe?

I do not have access to the iframed page.

any CSS or javascript solution

+6
javascript jquery css cross-browser xhtml
Jan 13
source share
2 answers

Besides adding CSS style, background-color:transparent; to the body element of the iframe document, you 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 details.

If you cannot change the iframe document, you're out of luck. Maybe there is another source that you can use for data that provides it in another format, such as XML or JSON?

+9
Jan 13 '10 at
source share

Add this CSS code to the document, which is included in the iframe: background-color:transparent;

0
Jan 13 '10 at 11:49
source share



All Articles