请问代码是否正确
来源:3-4 编程练习
徐海燕420282
2019-12-17 22:03:53
<!DOCTYPE html>
<html>
<head>
<!-- 此处编写样式 -->
<style>
*{
margin:0;
padding:0;
}
.div1{
border:1px solid lightgray;
width:239px;
float:left;
padding:10px;
margin:10px;
}
.father{
width:843px;
border:1px solid #333;
overflow:hidden;
}
</style>
</head>
<body>
<!-- 此处写代码 -->
<div class="father clearfix">
<div class="div1">
<img src="http://climg.mukewang.com/590fe9770001e63102400135.jpg">
<p>欢迎来到慕课网学习新知识!</p>
</div>
<div class="div1">
<img src="http://climg.mukewang.com/590fe97d00011bda02400135.jpg">
<p>欢迎来到慕课网学习新知识!</p>
</div>
<div class="div1">
<img src="http://climg.mukewang.com/590fe982000150ba02400135.jpg">
<p>欢迎来到慕课网学习新知识!</p>
</div>
<div class="div1">
<img src="http://climg.mukewang.com/590fe9770001e63102400135.jpg">
<p>欢迎来到慕课网学习新知识!</p>
</div>
<div class="div1">
<img src="http://climg.mukewang.com/590fe97d00011bda02400135.jpg">
<p>欢迎来到慕课网学习新知识!</p>
</div>
<div class="div1">
<img src="http://climg.mukewang.com/590fe982000150ba02400135.jpg">
<p>欢迎来到慕课网学习新知识!</p>
</div>
</div>
</body>
</html>
1回答
好帮手慕码
2019-12-18
同学你好,代码正确,继续加油,祝学习愉快~
相似问题