IE8 模拟IE7 行为设置 分享
来源:互联网 发布:mac ps cs6 破解码 编辑:程序博客网 时间:2024/06/08 16:03
工作原因,接触了下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.
此设置是相对特别页面有效的。
- IE8 模拟IE7 行为设置 分享
- ie8中模拟ie7(emulate ie7)按钮的秘密
- 让IE8兼容IE7 IIS设置
- IE7&IE8
- css设置ie7,ie8中div高度自动设置
- 在IE8下设置兼容IE7或以下版本
- 在IE8下设置兼容IE7或以下版本
- IE7,IE8设置新窗口在选项卡打开
- 设置iframe自适应高度(/*兼容FF/IE9/IE8/IE7/IE6*)
- 设置IE浏览器文本模式为IE8或IE7
- IE7/IE8改为IE6
- ie8兼容IE7问题
- IE8 强制转换ie7
- Ie8兼容ie7
- ie8转换成ie7
- ie8转换成ie7
- IE7/IE8全屏解决方案
- 兼容IE6 IE7 IE8
- 《源代码就是设计》
- JQuery 开发笔记
- 设置ip转发提示iptables: No chain/target/match by that name错误的解决方法
- 怎样带好一个团队
- ADD DISK TO ASM(10g RAC ,HP+UX OS)
- IE8 模拟IE7 行为设置 分享
- 重定向和转发的区别
- 哈夫曼树
- oracle 日期常用函數 (ADD_MONTHS,LAST_DAY,NEXT_DAY,MONTHS_BETWEEN,NEW_TIME,ROUND,TRUNC)
- 关于geeker
- [转 作为一个程序员应该笨和懒]
- putty乱码问题及解决
- 持续集成工具的选择
- 高性能Web服务器Nginx的配置与部署研究(10)核心模块之HTTP模块Location相关指令