惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
PCI Perspectives
PCI Perspectives
Webroot Blog
Webroot Blog
Help Net Security
Help Net Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Hacker News: Ask HN
Hacker News: Ask HN
Security Latest
Security Latest
P
Palo Alto Networks Blog
Spread Privacy
Spread Privacy
S
Securelist
V2EX - 技术
V2EX - 技术
Schneier on Security
Schneier on Security
P
Proofpoint News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
Cloudbric
Cloudbric
GbyAI
GbyAI
A
About on SuperTechFans
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
P
Proofpoint News Feed
SecWiki News
SecWiki News
T
Tailwind CSS Blog
腾讯CDC
C
Cybersecurity and Infrastructure Security Agency CISA
The Hacker News
The Hacker News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
T
Troy Hunt's Blog
G
Google Developers Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cisco Talos Blog
Cisco Talos Blog
D
DataBreaches.Net
V
Vulnerabilities – Threatpost
博客园 - 叶小钗
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Know Your Adversary
Know Your Adversary
T
Tor Project blog
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
Y
Y Combinator Blog
H
Help Net Security
Latest news
Latest news

博客园 - ifishing

VI操作 HTML中小meta的大作用【转】 10种AJAX/JavaScript特效实例让你的网站更吸引人 10 Smart Javascript Techniques to Improve Your UI [译] JavaScript核心指南(JavaScript Core) 【转】 IE7浏览器模式中表格tr/td渲染的一个bug jquery 模块拖拽【转】 jquery的Theme和Theme Switcher使用【转】 打败 IE 的葵花宝典:CSS Bug Table【转】 三谈Iframe自适应高度【转】 ff3.5已不再支持 -moz-opacity[转] 玩转jquery插件之flexigrid 【转】 JS实例:网页上图片延迟加载的JS代码 图片预加载并且自动等比例缩放的JS插件[转] jQuery表格插件:帮助Web设计者驾御HTML表格【转】 IE9允许前端开发获取到页面性能数据 Web开发者必须收藏的十大网站【转】 【转】打开,另存为,属性等14个javascript代码 【转】js实现另存为的方法 - ifishing - 博客园
强制将IE8设置为IE7兼容模式来解析网页【转】
ifishing · 2010-11-17 · via 博客园 - ifishing

// 2009.2.25 UPDATE:cosbeta提醒,这种方法只适合ie8,ie6已经以下版本都不支持这种方法。但我还有一个疑问,为什么在ie8没出来的时候这种方法就有了呢?

很早的时候在做MSN 直播频道的的时候遇到N多浏览器兼容的问题,再加上时间紧迫。也没有那么多的时间去一一调整兼容的问题,后来MSN那边的工程师就Mail我,说先加一个META语句来暂时解决浏览器兼容的问题,特别是IE浏览器兼容的问题,这个语句是这样的:

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

把这一句加在网页中除 TITLE 和其他 META 元素以外的所有元素之前的标头(HEAD 部分)中,这样就可以解决IE各个版本在浏览器中解析不一样的差异。我理解的这个语句的意思大概是这样的:
强制把IE所有版本的解析模式改为IE7的解析模式

真是够霸道的,至于为什么是这样,MSDN网站有一篇关于这方面的详细解释的文章叫:未来兼容性中的 META 标记和锁定,有兴趣的童鞋可以去看看,我想大概意思和我上面理解的那句话是差不多的,只不过MSDN中的文章解释的比较专业,而我解释的很通俗,没办法,谁叫我就一俗人呢?

转自:http://www.zeroz.cn/blog/archives/742/

posted on 2010-11-17 22:18  ifishing  阅读(254)  评论()    收藏  举报