我有一個網站正在開發中,當你將鼠標懸停在它們上面時,下拉菜單閃爍(大部分時間)。jQuery在懸停的下拉菜單上閃爍
網站是在這裏:http://www.wya.hardingweb.net
的子菜單的CSS是這樣的:
#nav ul {
position: absolute;
left: 0;
display: none;
margin: 0 0 0 -1px;
margin-top: 5px;
padding: 0;
list-style: none;
background-color: rgba(221, 221, 221, 0.7);
border: 1px solid #cccccc;
}
#nav ul li {
width: 150px;
float: left;
border-top: 1px solid white;
}
#nav ul li.long {
height: 50px;
}
#nav ul a {
font-family: helvetica;
font-size: 15px;
display: block;
line-height: 18px;
padding: 6px 0px;
color: #252060;
}
#nav ul a:hover {
text-decoration: underline;
}
這是由以下的jQuery(摘錄)觸發:
$(document).ready(function() {
//Menu system
$('#nav li').hover(function() {
//show its submenu
$('ul', this).slideDown(100);
}, function() {
//hide its submenu
$('ul', this).slideUp(100);
});
});
我有一個幻燈片也運行,如果我禁用幻燈片的jQuery,那麼菜單閃爍問題仍然是可重複的。
我正在使用Firefox 11 & Chrome最初進行測試。
有沒有人有任何想法?
感謝 奈傑爾^ h
感謝您的建議。 – nharding99 2012-04-18 11:06:41