如何避免ie8兼容性按钮? [英] How to avoid ie8 compatibility button?
问题描述
您可以在stackoverflow中的地址栏旁看到此按钮。 COM。但是当您访问google.com / live.com时,您将看不到兼容模式按钮。我们如何确保页面不显示这个按钮的用户?
简短的回答:
把这个放在你的head标签中告诉浏览器你的页面在IE 8中工作:
< meta http-equiv =X-UA-Compatiblecontent =IE = 8/>
同样按照Jon Hadleys的评论,为了确保使用最新的(不仅仅是IE8)渲染引擎,您可以使用以下内容:
< meta http-equiv =X-UA兼容content =IE =边缘>
In IE8, the Microsoft introduced a new mode called compatibility mode which would render the page like IE7.
You can see this button next to address bar in stackoverflow.com. But when you access google.com / live.com, you would not see the compatibility mode button. How do we make sure the pages don't show this button the user?
Short answer:
Put this in your head tag to tell the browser that your page works in IE 8:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
Also as per Jon Hadleys comment, to ensure the latest (not just IE8) rendering engine is used, you could use the following:
<meta http-equiv="X-UA-Compatible" content="IE=edge">
这篇关于如何避免ie8兼容性按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!