【问题标题】:IE9 displaying distorted version of websiteIE9 显示网站的扭曲版本
【发布时间】:2013-01-27 11:10:40
【问题描述】:

This website 在 Chrome 和 Firefox 中显示正常,但在 IE9 中显示为左对齐,并且图片库也倾斜。

我不明白为什么 IE9 会显示如此不同的显示。

【问题讨论】:

    标签: cross-browser internet-explorer-9


    【解决方案1】:

    第 3 方网络公司更改了 Opencart 模板,在 head 元素之前包含一个脚本元素,这显然使 IE 进入了怪癖模式。

    感谢 Frankie on CodingForums.com 为我解决此问题。

    他的帖子:

    通过把它放在 doctype 之前,你命令 IE 进入 quirks 模式:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
            $.noConflict();
                    jQuery(document).ready(function() {
                      jQuery(".the-content").hide();
                      jQuery(".the-head").click(function()       {
                        jQuery(this).next(".the-content").slideToggle(500);
                      });
                    });
    </script>
    <?xml version="1.0" encoding="UTF-8"?>
    

    把它放在脑袋里。您可以删除最后一行。你不需要它,它会启动 IE6。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-27
      • 1970-01-01
      • 2014-11-19
      • 1970-01-01
      • 2011-03-17
      • 2011-12-28
      • 1970-01-01
      相关资源
      最近更新 更多