-1
有人可以幫我弄清楚如何在css中設置這個代碼來顯示下拉菜單嗎?這是迄今爲止我所得到的,但我不知道該怎麼做。感謝您的幫助,謝謝。下拉菜單w/css
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="">Programs</a></li>
<ul class="drop-down-menu">
<li><a href="">Personal Trainer</a></li>
<li><a href="">Group Workout</a></li>
<li><a href="">Pricing</a></li>
</ul>
<li><a href="">About</a></li>
<li><a href="">Contact</a></li>
</ul>
</nav>
nav{
position: fixed;
z-index: 6;
list-style-type: none;
word-spacing: 30px;
font-family: 'karla', sans-serif;
text-transform: uppercase;
letter-spacing: 2px;
background-color: rgba(0,0,0,0.62);
nav a{
color: #F4F4F4;
}
ul li{
display: inline-block;
}
.drop-down-menu{
display: none;
}
https://validator.w3.org/nu/ – Quentin