为何这里列表会有默认的圆点,视频里却没有?

来源:4-2 侧边栏导航跟随案例

情人节礼物

2019-04-04 00:52:45

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Document</title>

<style type="text/css">

*{

margin: 0

padding:0;

}

.page{

width: 100%;

height: 4043px;

background:url(C:\\Users\\Administrator\\Desktop\\再不下就到期啦\\定位\\position源码\\position源码\\mooc.png) no-repeat center top;

}

.nav{

width: 160px;

height: auto;

position: fixed;

left: 0;

top: 50%;

margin-top:-103px;

}

.nav-li{

width: 160px;

height: auto;

border-bottom: 1px solid white;

background-color: black;

color: white;

text-align: center;

line-height: 40px;

font-size: 16px;

}

.nav-li ul{

width: 160px;

height: auto;

}

.nav-li ul li{

width: 160px;

height: 40px;

border-bottom: 1px dashed white;

background-color: gray;

color: white;

text-align: center;

line-height: 40px;

font-size: 12px;

}


</style>

</head>

<body>

<div class="page"></div>

<div class="nav">

<div class="nav-li">

<div class="title">一级标题</div>

<ul>

<li>二级标题</li>

<li>二级标题</li>

<li>二级标题</li>

</ul>

</div> 

<div class="nav-li">一级标题</div> 

<div class="nav-li">一级标题</div> 

<div class="nav-li">一级标题</div> 

<div class="nav-li">一级标题</div> 

</div>

</body>

</html>


写回答

1回答

好帮手慕码

2019-04-04

同学你好!

原点是li标签的默认效果,可以设置list-style:none;就可以清除掉了

http://img.mukewang.com/climg/5ca563ef0001525803280133.jpg

如果解决了你的疑惑,望采纳, 祝学习愉快~~


0

0 学习 · 36712 问题

查看课程