老师 帮忙看下代码

来源:3-15 编程练习

lcy_18

2020-12-07 13:09:13

<!DOCTYPE html>

<html>

    <head lang="en">

        <meta charset="UTF-8">

        <title></title>

        <style type="text/css">

           /*此处写代码*/

           ol li:first-child{

             colorred;

           }

           ol li:nth-child(2){

             colorgreen;

           }

           ol li:last-child{

             colorblue;

           }

        </style>

    </head>

    <body>

        <!--此处写代码-->

        <ul>

          <li>家用电器

            <ol>

              <li>冰箱</li>

              <li>洗衣机</li>

              <li>空调</li>

            </ol>

          </li>

          <li>清洁用品

            <ol>

              <li>洗衣液</li>

              <li>消毒液</li>

              <li>洗厕液</li>

            </ol>

          </li>

          <li>妇婴用品

            <ol>

              <li>奶粉</li>

              <li>纸尿片</li>

              <li>奶瓶</li>

            </ol>

          </li>

        </ul>

    </body>

</html>


写回答

1回答

好帮手慕星星

2020-12-07

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

0

0 学习 · 15276 问题

查看课程