请老师检查代码
来源:2-5 编程练习
pine小松
2020-03-08 21:32:13
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>float</title>
<style>
.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 class="div3"></div>
</div>
</body>
</html>
1回答
同学你好,代码是正确的,继续加油,祝学习愉快~
相似问题