ie6下弹出层会被覆盖bug的解决

[img]http://dl.iteye.com/upload/attachment/232721/2e2e5a33-a1b5-3112-b9c3-ecda777b9960.png[/img]
在层结点前方加入一个iframe结点<iframe class="zindexDiv" frameborder="0">;

样式:.zindexDiv {
position: absolute;
z-index: -1;
width: expression(this.nextSibling.offsetWidth);
height:
expression(this.nextSibling.offsetHeight);
top:
expression(this.nextSibling.offsetTop);
left:
expression(this.nextSibling.offsetLeft);
}样式的作用在于使得iframe正好完全覆盖下一结点,注意z-index属性过高的话可能会覆盖弹出层,导致一片空白

ExtJS中的写法:

  其中subs为要弹出的层被ext封装后的对象集合,属于Class Ext.CompositeElementLite

  if(Ext.isBorderBox || Ext.isIE6) {
subs.each(function(item) {
Ext.DomHelper.insertBefore(item,'<iframe class="zindexDiv" frameborder="0"></iframe>');
});
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值