用条件注释判断浏览器是什么版本
<!--[if lt IE 7]> <html class="ie6"> <![endif]-->
<!--[if IE 7]> <html class="ie7"> <![endif]-->
<!--[if IE 8]> <html class="ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
然后在<style>根据不同浏览器情况写
.ie6 类名{ }
.ie7 类名{ }
.ie8 类名{ }
这样写便于维护
详细解决方案
浏览器兼容代码 条件诠释判断
热度:137 发布时间:2012-12-23 11:28:15.0
相关解决方案