html中写法:
1.
<!--[if IE 6]>
<style type="text/css">
/* 针对IE6定义的样式 */
</style>
<![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if lt IE 7]>版本小于IE7将看到这行<![endif]-->
<!--[if lte IE 7]>版本小于或等于IE7将看到这行<![endif]-->
<!--[if IE 7]>版本如果是IE7将看到这行<![endif]-->
<!--[if gt IE 7]>版本大于IE7将看到这行<![endif]-->
引入单独的css文件
<!--[if IE 6 ]>
<link rel="stylesheet" type="text/css" media="all" href="./ie6.css" />
<![endif]-->