【问题标题】:thickbox overlay incorrect in ie6/7ie6/7 中的厚框覆盖不正确
【发布时间】:2011-04-22 10:08:32
【问题描述】:

你好 我正在使用带有 jquery 的thickbox。但是在 ie6/7 中,使用thickbox 附带的标准 css 时,它适用于 ie8 和 ff,但不适用于 ie7。我已经尝试过黑客攻击,但那确实有效。 (发布在下面)。发生的情况是,如果我使用 hack,它根本不会影响透明覆盖。如果我不使用 hack,它只会显示 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; }

【问题讨论】:

    标签: javascript jquery internet-explorer-7 internet-explorer-6 thickbox


    【解决方案1】:

    在 Firefox 中存在同样的问题,但在以下情况下可以解决:

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

    干杯

    【讨论】:

      【解决方案2】:

      试试这样的东西(从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');
      }
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2010-10-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-05-12
        相关资源
        最近更新 更多