我正在css中制作一个菜单,当我将鼠标悬停在某个块上时我希望它下拉,但现在当我打开网页时它开始下拉。这是我的代码
#header_menu.li: ul.dropdown{
display: none;
}
#header_menu.li: ul.dropdown hover {
display: block;
position absolute;
margin: 0 0 0 -15px;
bottom: 60px;
/* makes drop up start at top of footer */
border: 1px solid #111111;
border-bottom: none;
background: rgba(0,0,0,0.5);
border-radius: 7px 0px 0px 0px;
/* top left corner, top right corner, bottom right corner, bottom left corner */
}
编辑仍然不在这里工作是我的 html
<li> <a href = "#"> Account </a>
<ul class = "dropdown">
<li><a href = "#"> Standings</li>
<li><a href = "#"> Playoff Picture</li>
<li><a href = "#"> Group Chat</li>
<li><a href = "#"> Schedule</li>
</ul>
</li>