为什么IE9在文档模式下以IE7标准打开? [英] Why does IE9 opens in Document Mode as IE7 standards?

查看:131
本文介绍了为什么IE9在文档模式下以IE7标准打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在IE9中打开一个DOCTYPE的网页时,

 <!DOCTYPE html> 

它以IE7标准打开文档模式。

<



如何改正这个文件模式的问题?



我打开页面时需要默认的IE9标准。 IE浏览器开发工具的截图。

解决方案

试试这个答案: https://stackoverflow.com/a/13524518/1679310



总结,给IE浏览器更多元标记信息:

 <!DOCTYPE html> 
< html>
< head>
< title>我的网页< / title>
< meta http-equiv =X-UA-Compatiblecontent =IE = edge/>

编辑注意:正如Olly Hodgson所说,正确的选项是IE = edge在上面的片段中陈述。下面是原始的,也是工作版本:

 < meta http-equiv =X-UA兼容content =IE = 100/> 


When I open a webpage in IE9 with DOCTYPE as

<!DOCTYPE html>

It opens Document Mode as IE7 standards.

I need default IE9 standards on opening the page.

How to correct this document mode problem?

A screenshot of how it comes in IE browser developer tool

解决方案

Try this answer: https://stackoverflow.com/a/13524518/1679310.

Summary, give the IE browser more information in the meta tag:

<!DOCTYPE html>
<html>
  <head>
    <title>My Web</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

Edit Note: As Olly Hodgson mentioned, the proper option is IE=edge, as currently stated in the above snippet. Below is the original, also working version:

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

这篇关于为什么IE9在文档模式下以IE7标准打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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