老师,为什么我加了浮动为什么还是竖着摆放的啊?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.boot {
width: 600px;
height: 600px;
background-color: azure;
}
.left {
width: 300px;
height: 600px;
background-color: pink;
float: left;
}
.right{
width: 400px;
height: 600px;
background-color: aquamarine;
float: left;
}
</style>
</head>
<body>
<div class="boot">
<div class="left"></div>
<div class="right">
<div class="top"></div>
<div class="bottom">
<div class="sleft"></div>
<div class="sright"></div>
</div>
</div>
</div>
</body>
</html>