console
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>不知道甚么标题</title>
<style>
.box{
width: 300px;
height: 300px;
background-color: palevioletred;
border: 1px solid black;
position: relative;
}
.box1{
position: absolute;
width: 100px;
height: 100px;
left: 0;
top: 0;
background-color: red;
border: 1px solid black;
}
.box2{
position: absolute;
width: 100px;
height: 100px;
right: 0;
top: 0;
background-color: yellow;
border: 1px solid black;
}
.box3{
position: absolute;
width: 100px;
height: 100px;
left: 0;
bottom: 0;
background-color: blue;
border: 1px solid black;
}
.box4{
position: absolute;
width: 100px;
height: 100px;
right: 0;
bottom: 0;
background-color: green;
border: 1px solid black;
}
.box5{
position: absolute;
width: 100px;
height: 100px;
left: 100px;
right: 100px;
background-color: black;
border: 1px solid black;
}
.box6{
position: absolute;
width: 100px;
height: 100px;
left: 100px;
bottom: 0;
background-color: black;
border: 1px solid black;
}
.box7{
margin: 100px;
width: 100px;
height: 100px;
left: 0;
right: 0;
background-color: white;
border: 1px solid black;
}
.box8{
position: relative;
width: 100px;
height: 100px;
left: 0;
bottom: 200px;
background-color: black;
border: 1px solid black;
}
.box9{
position: absolute;
width: 100px;
height: 100px;
left: 200px;
top: 100px;
background-color: black;
border: 1px solid black;
}
</style>
</head>
<body>
<div class="box">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
<div class="box5"></div>
<div class="box6"></div>
<div class="box7"></div>
<div class="box8"></div>
<div class="box9"></div>
</div>
</body>
</html>