如何通过meta标签设置IE模式? [英] How To set IE mode by meta tag?

查看:563
本文介绍了如何通过meta标签设置IE模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立了MVC 4个网站,并部署到IIS 7.5。

现在,当这个网站是在任何客户端IE浏览器中打开,然后它会自动将兼容模式和一些CSS无法正常工作。

据主办内部网的目的。

请给我建议,我怎么可能会限制或明或任何建议。


解决方案

 < META HTTP-EQUIV =X-UA-Compatible的内容=IE =边缘/>

这会使浏览器使用最新版本的IE它。因此,如果是IE9设置为IE7 compatiability模式下,它会使用IE9渲染。

应该解决这些问题,因为它帮助我在相同的场景。

I have created site on MVC 4 and deployed on IIS 7.5.

Now, when this site is open at any client IE browser then it sets COMPATIBILITY MODE automatically and some CSS not worked properly.

It is hosted for intranet purpose.

Please suggest me how i could restrict explicitly or any suggestion.

解决方案

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

This will make browser use the latest version of IE available to it. Thus if it is IE9 set to IE7 compatiability mode it will use IE9 rendering.

It should fix those issues, as it's helped me in identical scenario.

这篇关于如何通过meta标签设置IE模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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