ie7-浏览器,父元素float,子元素如果也float,则magin-bottom失效。
为什么呢?父元素float不是触发BFC了吗?
http://output.jsbin.com/liwajir
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.inner{
float: left;
width: 100px;
height: 50px;
background-color: #8BB5C0;
margin: 20px;
}
.outer{
float: left;
background-color: #F9CC9D;
}
</style>
</head>
<body>
<div class="outer">
<div class="inner"></div>
</div>
</body>
</html>
可能是没有清除浮动的原因吧,模拟不出ie7了,只能这么推测一下。试试看