【发布时间】:2019-03-14 02:46:18
【问题描述】:
我不明白为什么我的代码不起作用。我想移除我的 ul 锚上的子弹。但是“ul {list-style: none;} 不起作用。
这是我的代码:
<div class="nav-wrapper">
<div class="logo">
<!-- <a href="/">Logo</a> -->
</div>
<div class="main-page-links">
<ul>
<li><a href="">MENU</a></li>
<li><a href="">WEEKLY EVENTS</a></li>
<li><a href="">FILLER</a></li>
<li><a href="">FILLER</a></li>
</ul>
</div>
<div class="gallery">
<img src="" alt="image galleries">
</div>
</div>
这是 Css:
*{
margin: 0;
padding: 0;
box-sizing: border-box;}
body{
height: 100%;
}
.nav-wrapper{
display: grid;
grid-template-columns: repeat(6, 1);
grid-template-rows: 8;
height: 100px;
width: 900px;}
ul { list-style: none;} /* I thought this would do it */
【问题讨论】:
-
我没有看到任何项目符号!,这一定是更大代码的一部分,项目符号可能来自那里..