1
這是我的HTML代碼:如何將延遲添加到側面菜單上?
<div id="pastIssuesBody">
<ul>
<li><a href="#">2017</a>
<ul>
<li><a href="#">January</a>
<ul>
<li><a href="/index.php?month=Jan&year=2017">Issue I</a></li>
<li><a href="/index.php?month=Jan_second_issue&year=2017">Issue II</a></li>
</ul>
這是我的CSS:
#pastIssuesBody ul {
margin: auto;
padding: 0;
list-style: none;
width: inherit;
font-size: 11.5pt;
}
#pastIssuesBody ul > li {
position: relative;
font-size: 11.5pt;
}
#pastIssuesBody li > ul {
position: absolute;
left: 50px;
top: 0;
display: none;
}
#pastIssuesBody ul > li > a {
display: block;
text-decoration: none;
color: #58595b;
background: transparent;
padding: 8px;
border: none;
border-bottom: 0;
width: 100%;
}
#pastIssuesBody ul > li > a:hover {
background-color:#f6f6f6;
}
#pastIssuesBody li:hover > ul {
display: block;
}
#pastIssuesBody ul > li > ul > li > ul {
width: 100%;
margin-left: 41px;
display: none;
}
我怎樣才能讓這個當我上的日期徘徊,有一個輕微的延遲? (當我有一個月的一年出現) 這是我的網站:https://today.byu.edu
「這是我的網站 - 找到我需要幫助的代碼的好運氣」? - 請在它自己的問題中創建一個[mcve]。 –
請記住保留您的代碼MCVE。 https://stackoverflow.com/help/mcve – victor
只是出於好奇 - 沒有看到任何演示我不得不問,爲什麼你需要延遲? –