X-UA兼容的重点是什么? [英] What is the point of X-UA-Compatible?
本文介绍了X-UA兼容的重点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我完全不理解 < meta http-equiv =X-UA-Compatiblecontent =.../> 用于...
有人可以解释...
$ ul
内容
?解决方案
这是一个可怕的黑客来迎合不同版本的Internet Explorer浏览器中的不同错误或不完整的实现。例如:
pre $ lt; code>< meta http-equiv =X-UA-Compatiblecontent =IE = EmulateIE7 >
会指示IE9假装它真的是IE7,以避免您的网站在IE7中工作时可能发生的任何问题但不是IE9。
I don't understand at all what <meta http-equiv="X-UA-Compatible" content="..." />
is for...
Can someone explain...
- What it does for different values of
content
? - What omitting it does for different browsers?
- What the motivation for it is?
- Why it exists?
解决方案
It's a horrible hack to cater for different bugs or incomplete implementations in various versions of the Internet Explorer browser. For example, this:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
will instruct IE9 to pretend it's really IE7 to avoid any problems that might occur if your site works in IE7 but not IE9.
这篇关于X-UA兼容的重点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文