CSS3 盒模型- 外边距折叠
题目
代码
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.top, .bottom{
height: 100px;
width: 100px;
margin: 10px;
}
.top{
background: red;
}
.bottom{
background: blue;
display: inline-block;
float: left;
position: absolute;
}
</style>
</head>
<body>
<section class="top"></section>
<section class="bottom"></section>
</body>
</html>