3-31作业审批
来源:3-31 编程练习
web前端高级开发工程师
2021-08-04 14:41:04
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
div {
width: 200px;
height: 150px;
background-color: #eee;
margin-top: 5px;
}
section {
width: 200px;
height: 30px;
margin-bottom: 5px;
background-color: #ff0;
}
div:empty {
background-color: red;
}
div>section:empty {
background-color: rgb(69, 69, 177);
}
</style>
</head>
<body>
<div>
<section>one</section>
<section>two</section>
</div>
<div></div>
<div>
<section>three</section>
<section>four</section>
<section>five</section>
<section></section>
</div>
</body>
</html>
相关截图:
1回答
好帮手慕久久
2021-08-04
同学你好,代码正确,很棒!
另,如果问题是在习题对应的位置提问的,则可以不粘贴图片,老师可以自己点进去看习题的要求,这样能简化同学的操作。
祝学习愉快!