IE的规则。不工作在IE 10 [英] Rule for IE. Not working in IE 10

查看:72
本文介绍了IE的规则。不工作在IE 10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为所有IE修订版指定了一个规则,但由于某种原因它不工作。

I specified a rule for all IE versios, but its not working for some reason.

<!--[if IE]>
<style type="text/css">
#topmenu LI.fisrt {
    padding: 5px 5px !important;
    font: 13px/43px sans-serif !important;
    text-transform: uppercase;
}
</style>
<![endif]-->


推荐答案

MSDN

支持条件注释已被Internet Explorer 10标准和怪异模式删除,以提高互操作性和符合HTML5

Support for conditional comments has been removed in Internet Explorer 10 standards and quirks modes for improved interoperability and compliance with HTML5

这个想法是IE10比旧的IE版本有更好的标准支持,不再需要有条件地定位它。

The idea is that IE10 has much better standards support than older IE versions and there should no longer be any need to conditionally target it.

这篇关于IE的规则。不工作在IE 10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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