如何向IE6 / IE7浏览器显示消息以升级到IE8并让IE8不显示IE7警告? [英] How can I show a message to IE6/IE7 browsers to upgrade to IE8 and have IE8 not show the IE7 warning?

查看:128
本文介绍了如何向IE6 / IE7浏览器显示消息以升级到IE8并让IE8不显示IE7警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想只允许使用IE8(不是IE6,IE7)或其他浏览器的用户在登录时访问我的网站。

I want to only allow users with IE8 (not IE6, IE7) or another browser to access my site when logged in.

我跟着: http://code.google.com/p/ie6-upgrade-warning/
但我也希望它不允许IE7用户在登录时使用主站点(他们可以查看公共页面。)原因是主Web应用程序有很多JavaScript效果,只能在IE8中100%工作渲染模式(或除了IE之外的任何其他浏览器。)

I followed: http://code.google.com/p/ie6-upgrade-warning/ But I also wanted it to not allow IE7 users to use the main site when logged in (they can view public pages.) The reason is that the main web application has a lot of JavaScript effects that will only work 100% in IE8 rendering mode (or any other browser aside from IE.)

将ie6升级警告修改为ie7的问题是看起来IE8在IE7中显示我的网页渲染模式和谎言关于ie7并触发IE7样式表代码。

The problem with modifying the ie6 upgrade warning to be ie7 is that it looked like IE8 displayed my webpage in an IE7 rendering mode and "lies" about being ie7 and triggers the IE7 stylesheet code.

那么如何强制IE8始终以IE8模式呈现我的页面?

So how can I force IE8 to always render my page in IE8 mode?

推荐答案

使用此标签:

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

这篇关于如何向IE6 / IE7浏览器显示消息以升级到IE8并让IE8不显示IE7警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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