3-31作业检查

来源:3-31 编程练习

ychao2

2022-10-11 01:22:15

<!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: #f00;
        }
        section:empty{
            background-color: #abcdea;
        }
	</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回答

好帮手慕小李

2022-10-11

同学你好,代码可以实现需求,很棒!继续努力,祝学习愉快!

0

0 学习 · 17877 问题

查看课程