HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/浮动.css"/>
</head>
<body>
<div class="bigBox">
<div class="box1">盒子1</div>
<div class="box2">盒子2</div>
<div class="box3">盒子3</div>
</div>
</body>
</html>
css
.bigBox {
border: 2px solid black;
font-size: 30px;
overflow: hidden;
margin: 0px none;
}
.box1 {
width: 200px;
height: 100px;
background-color: red;
float: right;
}
.box2 {
width: 300px;
height: 150px;
background-color: green;
float: right;
}
.box3 {
width: 400px;
height: 200px;
background-color: yellow;
float: right;
wdqqqqqqqqqzvxcfvxcvz
![高大上](https://img-blog.csdnimg.cn/92bd7ded158547baaa2ab735db340032.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAV1pKWkRacw==,size_20,color_FFFFFF,t_70,g_se,x_16#pic_center)