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]-->