你的位置:首页 > 网页设计

[网页设计]DIV+CSS设计IE6浮动产生双倍距离


<!doctype html>
<html>
<head>
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
.left{
width:235px;
float:left;
margin-left:10px;
border:1px solid red;
height:50px;
display:inline;/*加入inline-block*/
}
.right{
width:754px;
float:right;
margin-right:10px;
border:1px solid black;
height:50px;
display:inline;/*加入inline-block*/
}
</style>
</head>
<body>
<div ></div>
<div ></div>
</body>
</html>