快捷导航

html做二级栏目,我跟着视频做的,但是我的二级栏目被标题覆盖了,为什么?

*{                        margin: 0;                        padding: 0;                }                .page{                        width: 100%;                        height: 4000px;                        background-color: yellow;                }                .nav{                        width: 160px;                        height: auto;                        position: fixed;                        left: 0;                        top: 50%;                        margin-top:-103px ;                }                .nav-li{                        width: 160px;                        height: 40px;                        border-bottom: 1px solid #fff;                        text-align: center;                        line-height: 40px;                        color: #fff;                        font-size: 16px;                        background-color: #333;                }                .nav-li ul{                        width: 160px;                        height: auto;                }                .nav-li ul li{                        width: 160px;                        height: 40px;                        border-bottom: 1px dashed #666;                        color: #333;                        text-align: center;                        line-height: 40px;                        background-color: white;                }                                                                                                                标题
                               
                                           
  • 二级栏目                               
                               
                                标题
                                标题
                                标题
                                标题

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP