Reputation: 2457
I have a webpage that uses an iFrame (see http://little-apps.org/lilregcleaner/history.html) and (of course) the iFrame shows up with a white background in IE instead of the blue background in firefox and chrome. I have tried everything to make the background of the iframe blue/transparent include:
If anyone knows a solution to my problem then please let me know. I should also note that the only success I had was with style="filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0)".
Thanks!
Upvotes: 2
Views: 9535
Reputation: 3345
I think you have to add the background in the page loaded in the iframe.
Example, modify http:/little-apps.org/lilregcleaner/history/1.xx.html
Upvotes: 1
Reputation: 1131
Setting the IFRAME BODY's style
attribute to background-color:blue
works for me in IE8's debugger. (That is, the BODY of the document loaded in the IFRAME.)
Alternatively, you could use JavaScript to change the BODY's styles directly:
document.getElementById("versionHistory").contentWindow.document.body.style.backgroundColor="blue";
// get the IFRAME window object, get the BODY tag in that window, set its CSS
Upvotes: 2