当前位置: 代码迷 >> HTML/CSS >> ie8下iframe设置为最下层的方法,该如何解决
  详细解决方案

ie8下iframe设置为最下层的方法,该如何解决

热度:299   发布时间:2013-10-21 17:02:52.0
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看下能不能看到。
  相关解决方案