Skip to content

Instantly share code, notes, and snippets.

@Johnqing
Last active August 29, 2015 14:00
Show Gist options
  • Save Johnqing/11201643 to your computer and use it in GitHub Desktop.
Save Johnqing/11201643 to your computer and use it in GitHub Desktop.
body{
background:#fff;
}
.ie6 body{
background:#f00;
}
.ie7 body{
background:#00f;
}
.ie8 body{
background:#000;
}
.ie9 body{
background: #0f0;
}
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie6" lang="zh-cn"><![endif]-->
<!--[if IE 7 ]><html class="ie7" lang="zh-cn"><![endif]-->
<!--[if IE 8 ]><html class="ie8" lang="zh-cn"><![endif]-->
<!--[if IE 9 ]><html class="ie9" lang="zh-cn"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html class="" lang="zh-cn"><!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>title</title>
<!-- 360 forced open its browser! -->
<meta name="renderer" content="webkit">
<meta name="Keywords" content="" />
<meta name="Description" content="" />
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment