<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.top{
width:100px;
height:100px;
margin:10px;
background:red;
}
.bottom{
width:100px;
height:100px;
margin:10px;
background:blue;
position:absolute;
}
</style>
</head>
<body>
<section class="top"></section>
<section class="bottom"></section>
</body>
</html>
考察几个点: 1.类选择器的使用 2.盒子模型的属性 3.外边距折叠以及清除外边距折叠的三种方法: 3.1. display: inline-block 3.2. float属性值不是"none"的元素 3.3. 绝对定位