如何避免ie8兼容性按钮? [英] How to avoid ie8 compatibility button?

查看:100
本文介绍了如何避免ie8兼容性按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IE8中,微软推出了一种称为兼容模式的新模式,它将呈现类似于IE7的页面。



您可以在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆