麻烦老师验证对否

来源:2-24 编程练习

ponly

2019-01-23 22:30:35

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
           /*此处写代码*/
           ul > li > ol > li:first-child{
               color:#f00;
           }
           ul > li > ol > li:last-child{
               color:green;
           }
           ul > li > ol > li:nth-child(3){
               color:blue;
           }
        </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回答

好帮手慕星星

2019-01-24

你好,每个分类的标题添加上了,但是样式还是有问题,可以查看上一个相同的问答:

http://class.imooc.com/course/qadetail/89779

祝学习愉快!

0

0 学习 · 5012 问题

查看课程