小编给大家分享一下css如何实现IE条件注释,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
IE条件注释
你可以利用条件注释,设置只对IE产生作用的语句:
<!--[if IE]> <link rel="stylesheet" type="text/css" href="ie-stylesheet.css" /> < ![endif]-->
还可以区分各种不同的IE版本:
<!--[if IE 6]> - targets IE6 only --> <!--[if gt IE 6]> - targets IE7 and above --> <!--[if lt IE 6]> - targets IE5.5 and below --> <!--[if gte IE 6]> - targets IE6 and above --> <!--[if lte IE 6]> - targets IE6 and below -->
以上是“css如何实现IE条件注释”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注云搜网行业资讯频道!