日期:2014-05-17  浏览次数:20565 次

ie8下iframe设置为最下层的方法
<div style="position:relative;display:inline-block;width:178px;height:90px;z-index:9999;top:0;left:0;background-color:transparent;"></div>
<iframe src='' id='frame' frameborder='0' scrolling='no' width='178' height='90' allowTransparency='true' style='position:absolute;z-index:-1;top:0;left:0;padding:0px;margin:0px'></iframe>

ie7下div覆盖在iframe上方,ie8就不行,怎么解决

------解决方案--------------------
坑爹的IE6没有问题,你把DIV的背景色改成red看下能不能看到。