【问题标题】:Compatibility issue for IE8 and IE9IE8 和 IE9 的兼容性问题
【发布时间】:2014-02-12 16:01:01
【问题描述】:

目前,我的 Web 应用程序在 IE7 兼容模式下工作,即我正在使用以下元标记。

meta http-equiv="X-UA-Compatible" content="IE=7"

但是现在想不支持IE7,使用IE8、IE9兼容模式。

meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" 

但是,这样做会破坏我的 UI,并且我也开始收到以下错误。

类型错误对象不支持该属性或方法__defineGetter__

另外,我在 IE 支持中找到了以下链接。

https://connect.microsoft.com/IE/feedback/details/757992/implement-object-prototype-definegetter-and-object-prototype-definesetter-for-compatibility

有没有其他方法可以支持 IE8 和 IE9?

【问题讨论】:

    标签: internet-explorer ie-compatibility-mode


    【解决方案1】:

    尝试将以下 css 类添加到您的页面。我遇到了同样的问题,添加这个后就解决了..

     /* For modern browsers */.clearfix:before, .clearfix:after
            {
                content: "";
                display: table;
            }
            .clearfix:after
            {
                clear: both;
            }
            /* For IE 6/7 (trigger hasLayout) */.clearfix
            {
                zoom: 1;
            }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-10-04
      • 1970-01-01
      • 2012-04-16
      • 2011-07-27
      • 1970-01-01
      • 2015-12-11
      • 1970-01-01
      相关资源
      最近更新 更多