<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.fa {
width: 500px;
height: 500px;
background-color: red;
border: 8px solid green;
padding: 20px;
margin: 10px;
}
.son {
width: 100px;
height: 100px;
float: left;
background-color: yellow;
}
</style>
</head>
<body>
<div class="fa">
<div class="son"></div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
section {
width: 800px;
height: 500px;
background-color: #f40;
}
section div:first-child {
width: 200px;
height: 200px;
background-color: pink;
}
section div:last-child {
width: 249px;
height: 300px;
background-color: skyblue;
float: left;
}
</style>
</head>
<body>
<section>
<div>熊大</div>
<div>熊二</div>
</section>
</body>
</html>