实现效果:
<!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>Document</title>
<style>
body{
margin: 0;
height:100vh;
background-color: #eee;
}
/* 使边框为1px黑 */
*{
border: 1px solid black;
}
.flex{
display: flex;
}
.flex1{
flex: 1;
}
.column{
flex-direction: column;
}
.backwhite{
background-color: white;
}
</style>
</head&g