<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>布局</title>
<style>
#kuang1{
width: 100%;
height: 40px;
background-color: aqua;
margin-top: 5px;
border-radius: 5px;
}
.kuang2{
width: 20%;
height: 100px;
background-color: rgb(172, 52, 118);
float: left;
margin-top: 5px;
border-radius: 5px;
}
.kuang3{
width: 60%;
height: 100px;
background-color: rgb(218, 139, 65);
float: left;
margin-top: 5px;
border-radius: 5px;
}
.kuang4{
width: 20%;
height: 50px;
background-color: rgb(177, 46, 144);
float: right;
margin-top: 5px;
border-radius: 5px;
}
.kuang5{
width: 20%;
height: 50px;
background-color: rgb(225, 222, 8);
float: right;
border-radius: 5px;
}
.kuang6{
width: 20%;
height: 40px;
background-color: rgba(201, 7, 7, 0.505);
float: left;
margin-top: 5px;
border-radius: 5px;
}
.kuang7{
width: 60%;
height: 40px;
background-color: aqua;
float: left;
margin-top: 5px;
border-radius: 5px;
}
.kuang8{
width: 20%;
height: 40px;
background-color: rgb(1, 1, 1);
float: left;
margin-top: 5px;
border-radius: 5px;
}
.kuang9{
width: 100%;
height: 40px;
background-color: rgb(112, 161, 191);
clear: both;
margin-top: 5px;
border-radius: 5px;
}
.kuang10{
width: 20%;
height: 40px;
background-color: rgb(204, 128, 128);
float: left;
margin-top: 5px;
border-radius: 5px;
}
.kuang11{
width: 60%;
height: 40px;
background-color: rgb(94, 215, 14);
float: left;
margin-top: 5px;
border-radius: 5px;
}
.kuang12{
width: 20%;
height: 40px;
background-color: rgb(1, 1, 1);
float: right;
margin-top: 5px;
border-radius: 5px;
}
</style>
</head>
<body>
<div id="kuang1">1</div>
<div class="kuang2">2</div>
<div class="kuang3">3</div>
<div class="kuang4">4</div>
<div class="kuang5">5</div>
<div class="kuang6">6</div>
<div class="kuang7">7</div>
<div class="kuang8">8</div>
<div class="kuang9">9</div>
<div class="kuang10">10</div>
<div class="kuang11">11</div>
<div class="kuang12">12</div>
</body>
</html>