老师看一下有什么问题?

老师看一下有什么问题?

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
            font: "microsoft yahei";
            font-size: 16px;
        }
        .page{
            background: url(./作业/mooc.png) no-repeat top center;
            width: 100%;
            height: 4000px;
        }
        .nav1{
            width: 160px;
            height: 205px;
            color: #FFF;
            font-size: 16px;
            text-align: center;
            position: fixed;
            top: 50%;
            margin-top: -102.5px;
            cursor: pointer;
        }
        .tit,.nav2 li,.nav3 div{
            width: 160px;
            height: 40px;
            line-height: 40px;
        }
        .list1{
            width: 160px;
            height: auto;
            background: #222;
            line-height: 40px;
            border-bottom: 1px #FFF solid;
        }
        .nav2{
            width: 160px;
            height: 123px;
            color: #222;
            display: none;
        }
        .nav2 li{
            background: #FFF;
            border-bottom: 1px #222 dashed; 
            position: relative;
        }
        .tit:hover{
            color: red;
        }
        .list1:hover .nav2{
            display: block;
        }
        .nav3{
            width: 160px;
            height: 123px;
            color: #FFF;
            
            position: absolute;
            left: 160px;
            top: 0;
            display: none;
        }
        .nav3 div{
            background: #222;
            border-bottom: 1px #FFF solid;
        }
        .nav2:hover .nav3{
            display: block;
        }
    </style>
</head>

<body>
    <div class="page">
        <div class="nav1">
            <div class="list1">
                <div class="tit">慕课网的标题信息</div>
                <ul class="nav2">
                    <li>
                        <div class="tit">二级栏目</div>
                        <div class="nav3">
                            <div class="tit">三级栏目</div>
                            <div class="tit">三级栏目</div>
                            <div class="tit">三级栏目</div>
                        </div>
                    </li>
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                </ul>
            </div>
            <div class="list1">
                <div class="tit">慕课网的标题信息</div>
                <ul class="nav2">
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                </ul>
            </div>
            <div class="list1">
                <div class="tit">慕课网的标题信息</div>
                <ul class="nav2">
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                </ul>
            </div>
            <div class="list1">
                <div class="tit">慕课网的标题信息</div>
                <ul class="nav2">
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                </ul>
            </div>
            <div class="list1">
                <div class="tit">慕课网的标题信息</div>
                <ul class="nav2">
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                    <li class="tit">二级栏目</li>
                </ul>
            </div>
        </div>
    </div>    
</body>
</html>


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

2回答
提问者 雨之赞歌 2018-12-28 21:53:12

发错地方了。。

提问者 雨之赞歌 2018-12-28 21:49:30

另外有几个问题:

  1. font属性的简写应该怎么写?  包括字体集,字体大小和颜色。

  2. 为什么视频中老师用了ul-li列表可是前面没有圆点呢?

  3. 对父级元素设置font属性,子元素是不是可以继承?

  • 您好,请查看http://class.imooc.com/course/qadetail/85406。祝学习愉快!
    2018-12-29 10:12:30
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
PHP小白零基础入门
  • 参与学习           人
  • 提交作业       626    份
  • 解答问题       4930    个

想要学好Web后端开发的中流砥柱语言,本阶段为你轻松铺就扎实的基础,从前端网页布局的搭建到后台PHP开发,助你从零基础到掌握主流开发语言。

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师