iFrame background image problem on IE8
Hi i am trying since so long for background image on iframe its working fine on firefox and other browsers but s开发者_如何学JAVAerious problem i am facing on IE. Its showing nothing on IE. Pls help me out. Here is my code: I am using IE8.
<iframe scrolling="auto" frameborder="0" allowtransparency="true" name="main" style="width:100%;height:90%; background-image:url(img/bg2.jpg)"> </iframe>
Apply the background to the page you are loading inside the iframe
Not sure what's going on, but a couple things you could try are:
- Add
clear: both;
to your css - Insert a div that contains everything within the iFrame and set the background on that.
tyr this:
<iframe scrolling="auto" src="img/bg1.jpg" frameborder="0" allowtransparency="true" name="main" style="width:100%;height:90%;"> </iframe>
I have putted image in src attribute now its working fine.
精彩评论