为什么 IE 11 补丁 (KB3154070) 被 css 代码定位为低于 IE10?
Why does the IE 11 patch (KB3154070) get targeted by css code as lower than IE10?
我的网页登录与过时的浏览器不兼容,我已通过以下方式提醒我的用户:
CSS
#noIE
{
display:none;
}
.ie10 .myContainer
{
display:block;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#disCompatible { display:block !important; }
}
HTML
<div class="lblwar">
<!--[if lte IE 10]>
<p class="myalert alert-info">It seems you are using an outdated browser that is
no longer supported. Please upgrade your version of Internet Explorer or access
this site from chrome, firefox or a smart mobile device.</p>
<![endif]-->
</div>
<div class="myContainer ie10" id="disCompatible">
<!-- content that gets hidden from incompatible browsers -->
</div>
我遇到的问题是,使用 IE11 KB31540707
的安全更新显示消息,并且在测试时 page/site 显示了几个 jquery 和 css 问题就好像它是 IE 10 或更少。但是,如果我有 IE11 补丁 KB3148198
安装,网站功能完美。我该如何解决我遇到的问题?
这听起来像是兼容模式。确保在 运行 你的测试时它们都设置相同。
我的网页登录与过时的浏览器不兼容,我已通过以下方式提醒我的用户:
CSS
#noIE
{
display:none;
}
.ie10 .myContainer
{
display:block;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
#disCompatible { display:block !important; }
}
HTML
<div class="lblwar">
<!--[if lte IE 10]>
<p class="myalert alert-info">It seems you are using an outdated browser that is
no longer supported. Please upgrade your version of Internet Explorer or access
this site from chrome, firefox or a smart mobile device.</p>
<![endif]-->
</div>
<div class="myContainer ie10" id="disCompatible">
<!-- content that gets hidden from incompatible browsers -->
</div>
我遇到的问题是,使用 IE11 KB31540707
的安全更新显示消息,并且在测试时 page/site 显示了几个 jquery 和 css 问题就好像它是 IE 10 或更少。但是,如果我有 IE11 补丁 KB3148198
安装,网站功能完美。我该如何解决我遇到的问题?
这听起来像是兼容模式。确保在 运行 你的测试时它们都设置相同。