【问题标题】:IE 9 is not considering the meta tag defined for the IE 8 browserIE 9 没有考虑为 IE 8 浏览器定义的元标记
【发布时间】:2012-11-14 12:33:20
【问题描述】:

我使用的是 Internet Explorer 9 浏览器,而我的网页在 IE 8 中运行良好的资源管理器下未对齐。我在开发工具下将浏览器模式和文档模式保持为 IE 9 标准。下面是我包含在文件中的元标记,但页面仍然未对齐。我尝试将开发工具下的文档类型更改为 IE 8 标准,而不是正常工作,但在 IE 9 标准中不行。我希望页面应该模拟 IE 9 标准的属性。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Untitled Document</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
</head>

【问题讨论】:

  • 你需要发布更多的代码和信息,比如到底哪里错了。

标签: internet-explorer internet-explorer-8 internet-explorer-9 meta


【解决方案1】:

您需要在元标记中指定工作标准。

将元标记更改为

<meta http-equiv="X-UA-Compatible" content="IE=8" />

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

或(用于通过浏览器本身查找工作标准)

<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-22
    • 2011-01-02
    • 2013-11-25
    • 2013-08-04
    • 1970-01-01
    • 1970-01-01
    • 2014-11-26
    • 1970-01-01
    相关资源
    最近更新 更多