<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>float浮动2-6</title>
<style type="text/css">
.div1{width:100px;
height:100px;
background:red;float:left;
}
.div2{width:300px;
height:300px;
background:blue;float:right;
}
.div3{width:100px;
height:100px;
background:green;
float:inherit;}
</style>
</head>
<body>
<div class="div1"></div>
<div class="div2">
</div>
<div class="div3"></div>
</body>
</html>
2020-09-07 19:11:55
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星