细心的朋友会发现下面的html代码中多了一个<细心的朋友会发现下面的html代码中多了一个<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />标签!
     <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
     <meta http-equiv="Content-Language" content="gb2312" />
     <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
     <meta name="robots" content="all" />
     <meta name="googlebot" content="all" />
     <meta name="description" content="提供最新的asp源码,php源码,.net源码,flash源码,网站源码,网页源码,模板,软件下载" />
     <meta name="keywords" content="asp源码,php源码,.net源码,flash源码,网站源码,网页源码,模板,软件" />
     <title>源码下载网 - 提供最新免费网站源码下载</title>
     <META name="copyright" content="www.downhtml.com" />

那这个标签是什么意思呢?让我来看下msdn上的说明:
        In IE8 Beta 1, that option is the “IE=7” X-UA-Compatible tag, which instructs IE8 to display content in IE7 Standards mode. However, the scenario this doesn’t address is when IE=7 is applied as an HTTP header to a site that contains Quirks mode pages. The IE=7 HTTP header will force all pages – both Quirks and Standards – to display in IE7 Standards mode. Developers using this header while updating their sites would then have to add the “IE=5” <META> tag to each page they want to keep in Quirks mode. This logic is fine for many websites. However, if a site has lots of Quirks mode pages, or for the case where pages with frames host a mix of Strict and Quirks mode content – as brought to light by IE8 Beta 1 user feedback – the compatibility opt-out adds a bit more work than we intended.

X-UA-Compatible是针对ie8新加的一个设置,对于ie8之外的浏览器是不识别的,这个区别与content="IE=7"在无论页面是否包含<!DOCTYPE>指令,都像是使用了 Windows Internet Explorer 7的标准模式。而content="IE=EmulateIE7"模式遵循<!DOCTYPE>指令。对于多数网站来说,它是首选的兼容性模式。

目前IE8尚在测试版中,所以为了避免制作出的页面在IE8下面出现错误,建议直接将IE8使用IE7进行渲染。也就是直接在页面的header的meta标签中加入如下代码:
<meta http-equiv="X-UA-Compatible" content="IE=7" />
这样我们才能使得页面在IE8里面表现正常! http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />标签!
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="robots" content="all" />
<meta name="googlebot" content="all" />
<meta name="description" content="提供最新的asp源码,php源码,.net源码,flash源码,网站源码,网页源码,模板,软件下载" />
<meta name="keywords" content="asp源码,php源码,.net源码,flash源码,网站源码,网页源码,模板,软件" />
<title>源码下载网 - 提供最新免费网站源码下载</title>
<META name="copyright" content="Downhtml.com" />

  那这个标签是什么意思呢?让我来看下msdn上的说明:

  In IE8 Beta 1, that option is the “IE=7” X-UA-Compatible tag, which instructs IE8 to display content in IE7 Standards mode. However, the scenario this doesn’t address is when IE=7 is applied as an HTTP header to a site that contains Quirks mode pages. The IE=7 HTTP header will force all pages – both Quirks and Standards – to display in IE7 Standards mode. Developers using this header while updating their sites would then have to add the “IE=5” tag to each page they want to keep in Quirks mode. This logic is fine for many websites. However, if a site has lots of Quirks mode pages, or for the case where pages with frames host a mix of Strict and Quirks mode content – as brought to light by IE8 Beta 1 user feedback – the compatibility opt-out adds a bit more work than we intended.

  X-UA-Compatible是针对ie8新加的一个设置,对于ie8之外的浏览器是不识别的,这个区别与content="IE=7"在无论页面是否包含指令,都像是使用了 Windows Internet Explorer 7的标准模式。而content="IE=EmulateIE7"模式遵循指令。对于多数网站来说,它是首选的兼容性模式。

  目前IE8尚在测试版中,所以为了避免制作出的页面在IE8下面出现错误,建议直接将IE8使用IE7进行渲染。也就是直接在页面的header的meta标签中加入如下代码:
         <meta http-equiv="X-UA-Compatible" content="IE=7" />
  这样我们才能使得页面在IE8里面表现正常! http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />标签!

文章来源 源码下载网 ww.downhtml.com 转载请注明出处。

你的网站添加X-UA-Compatible meta标签了吗?相关推荐

  1. 如何为 Drupal 添加简单的 SEO META 标签(title keywords des...

    2019独角兽企业重金招聘Python工程师标准>>> Drupal 做为优秀的世界级开源 CMS 建站系统,自然有很多开发者贡献与 SEO 相关的模块插件扩展例如:用来批量自定义 ...

  2. html meta页面自适应,【转载·收藏】 html5手机网站自适应需要加的meta标签

    webapp开发初期,会碰到在pc端开发好的页面在移动端显示过大的问题,这里需要在html head中加入meta标签来控制缩放 下面是对于这个标签的具体说明: viewport 语法介绍: cont ...

  3. html5手机网站需要加的那些meta标签,手机网站自适应

    1.移动网站要加的html5相关meta和标签     a.<!-- 强制让文档与设备的宽度保持1:1 -->     <meta name="viewport" ...

  4. html网站meta标签大全

    案例 一.天猫 <meta charset="utf-8"><title>天猫TMALL</title><meta name=" ...

  5. html的meta标签作用,网站meta标签就什么,meta标签的作用

    Meta标签如何优化?对SEOer来说,meta标签是网站参与排名的基础,这也在某一方面决定了SEO的优化周期以及效果,会做和做好其实就是两个概念,虽然Mate标签操作不难,难度就在于标签的精炼,今天 ...

  6. HTML5的 meta 标签 使用汇总

    2020-06-11 各大网站前端界面中的 <meta> 标签 Meat对象代表HTML的一个元素,提供HTML元素的元信息,比如描述.关键字.刷新频率.对象属性: content 设置或 ...

  7. SEO基础:Meta标签之Keywords、Description

    今天网友小贼在QQ上问我,为什么搜索引擎中那么多排在前面的站点,都没有写Keywords和Description,樂思蜀就这个问题发表一下看法. 这两个Meta标签有什么作用? * Keywords: ...

  8. html5description标签,HTML中Meta标签的Keywords和Description独特见解

    这两个Meta标签有什么作用? Keywords:为搜索引擎提供参考,网页内容所包含的核心搜索关键词. Description:为搜索引擎提供参考,网页的描述信息:搜索引擎采纳后,作为搜索结果中的页面 ...

  9. 网站添加头部Meta property=og协议的使用方法详解教程

    Meta Property=og怎么使用? 如何调用og:type?怎么在文章中调用og:title?如何使用调取文章og:image?本文将介绍什么是Meta Property=og协议以及该协议的 ...

最新文章

  1. 烧钱大战数以亿计 无人驾驶无法突破局限?
  2. 《Docker技术入门与实战》——2.4 本章小结
  3. Spring Session Redis——自定义JSON序列化解决方案
  4. Spark Master的注册机制与状态管理
  5. Tomcat9版本不支持jsp处理PUT,DELETE之外的请求的解决方案(405方法不允许)
  6. 1004. 成绩排名 (20)-PAT乙级真题
  7. window10保存文件时提示联系管理员_东芝2000AC扫描文件到远程域共享服务器
  8. javaScript与MVC
  9. Linux 中进程的管理
  10. 算法面试题(python)——如何找出数组中出现一次的数
  11. tabbar角标 小程序_关于小程序tabbar不支持传参的处理办法
  12. QEMU仿真aarch64处理器运行Linux kernel
  13. 算法学习之贪心法(会议安排)
  14. mame模拟器版大家来找碴外挂,python源码
  15. 计算机课说话检查200字,上课说话检讨书200字(精选10篇)
  16. 【opencv4.3.0教程】09之转换颜色空间(cvtColor)及类型(convertTo)
  17. Flex布局搭建网页布局更方便
  18. 如何在公众号添加视频链接
  19. java实验:正n多边形类的定义与使用
  20. 『中级篇』什么是Container(15)

热门文章

  1. 小米手机60帧录屏_专业录屏工具,你们一定要收下
  2. lua linux获取文件夹,Linux:删除目录下的文件的10种方法
  3. 计算机网络:详解HTTP协议
  4. android 除了webview 浏览器控件,AgentWeb是基于Android WebView一个功能完善小型浏览器库...
  5. 哪一个不是html5新增的语义化标记元素,东师19春《HTML5开发基础与应用》作业考核【标准答案】...
  6. win服务器发展方向是什么?
  7. 没有可用于当前位置的源代码
  8. 获取C#中方法的执行时间及其代码注入
  9. Java实例---计算器实例
  10. JAVA中this和super用法