IE8 模拟IE7 行为设置 分享
2012-01-04 14:49
197 查看
工作原因,接触了下IE8,主要是研究IE8在模拟IE7行为上的差别, 在这推荐下面的blog还有msdn的相关信息
http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx
总结来说,可以有3种方式,让IE8来模拟IE7的行为:
1) IE8 Compatibility View Setting 模式:勾选 “Display all website in Compatibility View” (IE8提供了3种方式,可以根据需要选择适合的)
我在这选择的是所有访问的site都将模拟IE7的模式
2) 在server端的web.config种, 添加一个 custom HTTP header:<add name="X-UA-Compatible" value="IE=EmulateIE7" />
Implementing the HTTP header is beneficial if a site owner wants most of their site to render as it did in IE7 or if there are no plans to update site content. Inclusion of this header honors any Quirks mode pages that belong to the site.
当server上大多数site需要此操作时,可以使用这个设置。
3) 在client端添加一个特殊的 HTML tag ,在需要的page上: 添加<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 在 <head> 标签里面
Using the meta-tag on a per-page basis is beneficial when the publisher wants to operate in specific pages to render as they did in IE7.
此设置是相对特别页面有效的。
http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx
总结来说,可以有3种方式,让IE8来模拟IE7的行为:
1) IE8 Compatibility View Setting 模式:勾选 “Display all website in Compatibility View” (IE8提供了3种方式,可以根据需要选择适合的)
我在这选择的是所有访问的site都将模拟IE7的模式
2) 在server端的web.config种, 添加一个 custom HTTP header:<add name="X-UA-Compatible" value="IE=EmulateIE7" />
Implementing the HTTP header is beneficial if a site owner wants most of their site to render as it did in IE7 or if there are no plans to update site content. Inclusion of this header honors any Quirks mode pages that belong to the site.
当server上大多数site需要此操作时,可以使用这个设置。
3) 在client端添加一个特殊的 HTML tag ,在需要的page上: 添加<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 在 <head> 标签里面
Using the meta-tag on a per-page basis is beneficial when the publisher wants to operate in specific pages to render as they did in IE7.
此设置是相对特别页面有效的。
相关文章推荐
- IE8 模拟IE7 行为设置(转贴)
- 强制将IE8设置为IE7兼容模式来解析网页【转】
- 设置IE8使用IE7的样式的代码
- 强制将IE8设置为IE7兼容模式来解析网页
- IE7,IE8设置新窗口在选项卡打开
- 三张照片解决--win10系统的edge浏览器设置为浏览器IE8,IE7,IE9---完美解决 费元星
- 在IE8下设置兼容IE7或以下版本
- IE8中模拟IE7按钮(Emulate IE7 button)的秘密
- ie8中模拟ie7(emulate ie7)按钮的秘密
- 强制将IE8设置为IE7兼容模式来解析网页
- DIV+CSS相对IE6 IE7和IE8浏览器行为区别及兼容性问题整理
- 更改IE7、IE8的设置访问Terminal Service
- 强制将IE8设置为IE7兼容模式来解析网页
- 让IE8兼容IE7 IIS设置
- 分享 原创的一个模拟鼠标键盘操作的 设置简单 示例可以模拟向QQ群,以及QQ群内成员发送信息。
- ie7 ie8 使用border模拟圆
- 强制将IE8设置为IE7兼容模式来解析网页
- 强制将IE8设置为IE7兼容模式来解析网页
- 强制将IE8设置为IE7兼容模式来解析网页
- 在IE8下设置兼容IE7或以下版本