浏览器兼容代码 条件注释判断
用条件注释判断浏览器是什么版本<!--[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 类名{ }这样写便于维护