一、什么是盒子塌陷问题
示例:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>003</title>
</head>
<style>
.a1,.a2 {
margin-top: 5px;
}
.a1 {
width: 200px;
height: 200px;
background-color: red;
float: left;
}
.a2 {
width: 200
height: 200px;
background-color: yellow