css Hack

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		.ie6{
			_width:300px;
			height:300px;
			margin:0 auto;
			_background:red;
			border:3px solid #000;
		}
		.ie7{
			*width:600px;
			height:300px;
			margin:0 auto;
			*background:blue;
			border:3px solid #000;
		}
		.ie8{
			width:900px \9;
			height:300px;
			margin:0 auto;
			background:yellow \9;
			border:3px solid #000;
		}
	</style>
</head>
<body>
	<div class="ie6">ie6</div>
	<div class="ie7">ie7</div>
	<div class="ie8">ie8</div>
</body>
</html>

欢迎分享本文,转载请保留出处:前端ABC » css Hack

赞 (1)
分享到:更多 ()

发表评论 0