IE7中使用HTML5的标准模式? [英] Standards mode in IE7 with HTML5?

查看:119
本文介绍了IE7中使用HTML5的标准模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用HTML5文档类型时,有没有办法在IE7中触发标准模式?

Is there a way to trigger standards mode in IE7 when using the HTML5 doctype?

我的文档开头如下:

<!DOCTYPE html>
<html>
<head>
...


推荐答案

F12打开开发人员工具在IE 9中.Alt + 7,Alt + 8,& Alt 9将允许您在浏览器版本之间切换。还有一些菜单允许您更改文档和标准模式。

F12 opens Developer Tools in IE 9. Alt+7, Alt+8, & Alt 9 will allow you to toggle between browser versions. There are also menus that allow you to change both document and standards modes.

一些事情:

如果您正在尝试使用开发人员工具查看DOM树并在兼容模式下在不同版本之间切换,您应该知道每次切换模式时都需要刷新。否则你将无法看到树。

If you are trying to view the DOM tree using the developer tools and switching between different versions in compatibility mode, you should know that you need to refresh each time you switch modes. Otherwise you won't be able to see the tree.

此外,这些模拟与原始浏览器不完全相同。除非你在其他浏览器上,否则真的不可能看到另一个浏览器渲染页面的方式。

Also, these emulations are not exactly like the original browsers. It really is impossible to see "the way another browser would render" a page unless you are on that other browser.

我建议使用 browsershots.org 。它是免费的,无需下载。如果你想变得非常复杂,还有其他选择。但是我建议使用browsershots。请注意,需要几分钟才能恢复一些图像,并且每天都有最大限制。您可以通过注册帐户来提高一点。

I recommend using browsershots.org. It's free, and requires no download. If you want to get really sophisticated, there are other options. However I recommend browsershots. Just beware that it takes a few minutes to get a couple images back, and there is a maximum limit per day. You can raise that a bit by registering your account.

这篇关于IE7中使用HTML5的标准模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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