1

这个站点: http: //medisra.sideradesign.com 它默认以 IE7 文档模式呈现。这是由于 CSS 或 HTML 验证错误造成的吗?我怎样才能确定是什么原因造成的?谢谢

4

3 回答 3

2

这是我能想到的标题可能来自的所有地方。

考虑到您的评论:

我在同一台服务器上有其他子域,并且站点以标准模式呈现。

它不太可能在 Apachehttpd.conf或类似版本中定义。

  • 您是否 100% 确定没有其他.htaccess文件或其他配置文件可以引入它?
  • 您的 PHP 代码是否输出标题?在 PHP 中它看起来像这样:
    header('X-UA-Compatible: IE=EmulateIE7');
  • 可能是 Wordpress 插件的错吗?

您可以使用实用程序在网站的每个文件中搜索字符串“EmulateIE7”。

如果按照这些思路还是找不到的话,恐怕我也想不出别的了。

于 2011-01-26T15:32:44.053 回答
0

Check in the source of that page if the head contains the following meta tag:

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

If it does, that's why it renders the page like IE7 by default.

于 2011-01-26T13:45:26.453 回答
0

是关于定义文档兼容模式的一个很好的参考。

这将在 IE7 中呈现网站上的所有页面

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=EmulateIE7" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration> 
于 2011-01-26T13:25:45.703 回答