IE的有条件注释优点和缺点(2)
http://www.itjxue.com 2015-08-05 23:07 来源:未知 点击次数:
只有高于特定版本才能识别
只有高于制定版本的IE浏览器才能识别的代码块。
<!--[if gt IE 7]>
<style type="text/css">
@import "test.css";
</style>
<![endif]-->
有朋友会问,为什么IE7没有应用到效果呢?那是因为IE7等于IE7,而不是高于IE7。所有IE7也没有起效果。
等于或者高于特定版本才能识别
<!--[if gte IE 7]>
<style type="text/css">
@import "test.css";
</style>
<![endif]-->
(责任编辑:IT教学网)
下一篇:让访客记住网站的三段实用代码