2-14 编程练习作业提交
来源:2-14 编程练习
MiMicccc
2020-08-29 16:43:43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.per{
width: 300px;
height: auto;
border:2px solid #aaa;
}
.li{
width: 100px;
height: 100px;
background: red;
margin: 5px;
float: left;
}
/*此处写代码*/
.clear {
clear: both;
}
</style>
</head>
<body>
<div class="per">
<div class="li"></div>
<div class="li"></div>
<!-- 此处写代码 -->
<div class="clear"></div>
</div>
</body>
</html>1回答
好帮手慕星星
2020-08-29
同学你好,代码实现效果很棒。继续加油,祝学习愉快!
相似问题