老师 帮忙检查下

来源:3-31 编程练习

lcy_18

2020-12-07 13:50:24

<!DOCTYPE html>

<html>

<head>

    <title></title>

  <style type="text/css">

    div{

      width200px;

      height:150px;

      background-color#eee;

      margin-top5px;

    }

    section{

      width200px;

      height30px;

      margin-bottom5px;

      background-color#ff0;

    }

    /*此处写代码*/

    div:empty{

      background-color#f00;

    }

    section:empty{

      background-color#abcdef;

    }

  </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回答

好帮手慕星星

2020-12-07

​同学你好,代码是正确的。继续加油,祝学习愉快!

0

0 学习 · 15276 问题

查看课程