这些是我的HTML代码:
<ul class="mymenu">
<div class="gradient rounded-corners grpelem" id="u7149">
<!-- simple frame -->
</div>
<li><a href="degree-programs.html">Home</a></li>
<li><a href="diploma-programs.html">Programs Offered</a></li>
<li><a href="diploma-programs.html">Military</a></li>
<li><a href="diploma-programs.html">About Us </a></li>
<li><a href="diploma-programs.html">Locations</a></li>
<li><a href="diploma-programs.html">Request Info</a></li>
</ul>
这些是我的以上html的Css代码:
ul.mymenu {
list-style:none;
}
ul.mymenu li {
float:left;
}
ul.mymenu li a {
color:#fff;
}
答案 0 :(得分:2)
您的css中似乎有一个错误,这就是列表不可见的原因。按如下方式更改您的ul.mymenu li:
ul.mymenu li a {
color: black; //you had typed the colorcode wrong and it was white so it was not visible to you on white background
}