我正在执行以下操作来切换鼠标。但是当你的鼠标在#sideshoppingcart div上走了一半左右时,整个div就消失了。
$(document).ready(function() {
$("li#menu-item-170").hover(function() {
wwd_shopping_cart_collapser();
},function() {
wwd_shopping_cart_collapser();
});
}
function wwd_shopping_cart_collapser() {
switch($("#sideshoppingcart").css("display")) {
case 'none':
$("#sideshoppingcart").slideToggle("fast",function(){
$.post( 'index.php', "ajax=true&set_slider=true&state=1", function(returned_data) { });
});
break;
default:
$("#sideshoppingcart").slideToggle("fast",function(){
$.post( 'index.php', "ajax=true&set_slider=true&state=0", function(returned_data) { });
});
break;
}
return false;
}
答案 0 :(得分:0)
我认为z-index只有极端的复杂性。
尝试将此添加到您的css:
#product_showcase {
z-index:1
}