<style type="text/css">
#a
{
background-color:#CCC;
border:2px solid #333;
width:100px;
height:100px;
border:5px solid #BBB;
margin:10px;
float:left;
display:inline; //关键,让display为inline;
}
#b
{
background-color:#CCC;
border:2px solid #333;
height:100px;
width:100px;
border:5px solid #BBB;
margin:10px;
clear:left;
float:left;
display:inline; //关键,让display为inline;
}
</style>
</head>
<body>
<div id="a">
</div>
<div id="b">
</div>
</body>
</html>
css解决IE6下左右margin加倍问题
最新推荐文章于 2024-08-24 13:47:49 发布