web前端开发盒子的嵌套
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.father{
width: 300px;
height: 300px;
background-color: gray;
}
.son{
width: 100px;
height: 100px;
background-color: blue;
}
</style>
</head>
<body>
<div class="father">
I am father
<div class="son">
I am child
</div>
</div>
</body>
</html>
开发环境:HBuilderx2.7.5
运行结果: