老师这样写对吗?

来源:4-12 编程练习

慕用7203472

2019-05-13 10:02:25

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.div1{
line-height: 1px;
float: left;
margin:10px 10px 10px 10px;
width: 250px;
height: 150px;
}
#div0{
width: 900px;
height: 300px;
}
</style>
</head>
<body>
    <div id="div0">
     <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-05-13

同学你好!样式是可以的,不过代码没有对错,同学也可以参照作业给出的思路来完成:

http://img.mukewang.com/climg/5cd8e0e20001e54704090150.jpg

如果我的回答解决了你的疑惑,请采纳,祝学习愉快~

0

0 学习 · 9666 问题

查看课程