以怪癖模式呈现与IE7相关的问题 [英] Rendering issues with IE7 in quirks mode

查看:96
本文介绍了以怪癖模式呈现与IE7相关的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个网站,可以在除了IE7以外的所有浏览器上正常工作,正如某些用户所报告的。在IE7中它被完全分解了。

不幸的是,我无法访问任何使用IE7的机器。因此,我在我的IE8上安装了开发人员工具栏,并尝试通过兼容模式设置为IE7 |查看该站点IE7标准。



该网站工作正常。当我将它设置为IE7 | IE7的怪癖模式,但我可以看到,该网站被打破。

解决这个问题最简单的方法是什么?有什么办法可以强制浏览器始终在IE7标准模式下呈现我的网站吗?

解决方案

在IE中怪癖模式通常是由缺少(或不正确)文档类型引发的。

检查您的文档类型是否有效。这应该防止它进入怪异模式。



如果您不确定该做什么,请将以下内容添加到您的html代码的顶部:

 <!DOCTYPE html> 

希望有所帮助。


I have developed a website which works fine in all browsers except IE7 as reported by some users. In IE7 it is completely broken up.

Unfortunately I do not have access to any machine with IE7. Hence I installed developer toolbar on my IE8 and tried to view the site with compatibility mode set to IE7| IE7 Standards.

The site was working fine. When I set it to IE7 | IE7 Quirks mode however I could see that the site was broken.

What is the simplest way to fix this issue? Is there any way I can force the browser to render my website in IE7 standards mode always ?

解决方案

Quirks mode in IE is usually triggered by a lack of (or incorrect) doctype.

Check that your doctype is valid. This should prevent it from going into quirks mode.

If you're not sure what to do, add the following to the top of your html code:

<!DOCTYPE html>

Hope that helps.

这篇关于以怪癖模式呈现与IE7相关的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆