ie6/7中的thickbox覆盖不正确

thickbox overlay incorrect in ie6/7

本文关键字:覆盖 不正确 thickbox 中的 ie6      更新时间:2023-09-26

你好我在jquery中使用thickbox。然而,在带有thickbox的标准css的ie6/7中,它可以与ie8和ff一起使用,但不能与ie7一起使用。我试过一次破解,但没用。(张贴在下面(。结果是,如果我使用破解,它根本不会影响透明覆盖。如果我不使用破解,它只显示50%的页面透明。有人能告诉我在哪里解决这个问题吗?非常感谢

#TB_overlay {
    position: fixed;
    z-index:100;
    top: 0px;
    left: 0px;
    height:100%;
    width:100%;
}
#TB_overlay { position: absolute; z-index:100; top: 0px; left: 0px; background-color: #000000; filter:alpha(opacity=85); -moz-opacity: 0.7; opacity: 0.75; min-height:100%; height: auto; _height:100%; /* pour IE 6 */ height : 1px; } /* pour les autres navigateurs */ 
* > #TB_overlay { height: auto; } /* pour IE 7 */ 
*+html #TB_overlay { min-height : 1px; }

Firefox中也有同样的问题,但如果:

width: 100% !important;
height: 100% !important;

欢呼

试试这样的东西(从fancybox的css修改而来(:

#TB_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 100;
    filter:alpha(opacity=85);
    -moz-opacity: 0.7;
    opacity: 0.75;
}
* html #TB_overlay {
    position: absolute;
    height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}