看你要的效果是什么
延迟2s消失的话加个定时器
$(function(){
$('#webmenu li').hover(function(){
$(this).children('ul').stop(true,true).show('slow');
},function(){
var self = this;
setTimeout(function() {
$(self).children('ul').stop(true,true).hide('slow');
}, 2000);
});
要是鼠标离开到消失是2s
$(function(){
$('#webmenu li').hover(function(){
$(this).children('ul').stop(true,true).show('slow');
},function(){
$(this).children('ul').stop(true,true).hide(2000);
});
fadeOut(“2000”);