0

你好 我正在使用thickbox与jQuery。然而在ie6/7中使用thickbox自带的标准css,它可以与ie8和ff一起使用,但不能使用ie7。我曾尝试过黑客攻击,但是这种攻击并没有成功。 (在下面发布)。会发生什么,如果我使用黑客它根本不会影响透明覆盖。如果我不使用黑客它只显示50%的页面透明。有人可以告诉我在哪里解决这个问题?非常感谢厚盒叠加不正确ie6/7

#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; } 

回答

0

尝试这样的事情(从的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'); 
} 
+0

非常感谢你非常适合你的代码。 – ploppy 2011-04-26 21:58:24

1

在Firefox同样的问题,但它的工作原理,如果:

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

欢呼