我正在为我正在学习的课程的网站上工作,但我遇到了列表问题。我需要在特定页面上显示一个列表,以较低的 alpha 作为项目符号类型,但没有显示任何内容。
我已经使用 Notepad++ 中的查找工具来搜索所有包含 list-style-type 的行,并检查它们没有设置为 none。
我还需要导航栏上的列表将图像作为样式类型。
包含列表和 CSS 的 HTML 页面:
@font-face{ font-family:customFont; src: url('../fonts/Balkeno.ttf'); }
* {
margin: 0;
border: 0;
padding: 0;
font-size: 12px;
font-family: arial, sans-serif;
}
body {
width: 100%;
height: 300%;
background-color: #D8D8D8;
}
nav {
font-family: customFont;
font-size: 30px;
width: 100%;
height: 50px;
position: fixed;
z-index: 50;
}
.nav-background {
width: 100%;
height: 100%;
background: #12A7CB;
opacity: 0;
position: absolute;
}
.nav-content {
position: relative;
top: 50%;
transform: translateY(-50%);
} …
Run Code Online (Sandbox Code Playgroud)