Use jquery smartly to solve the problem of the drop down menu being blocked by Div


Using jquery’s hover event, when the mouse moves to the menu, the div of the occlusion drop-down menu is set to a negative value, and the positive value is restored when the mouse leaves.

**The code is as follows: **

$("#menu").hover( function() {
$(".divName").css("z-index", "-1");
}, function() {
$(".divName").css("z-index", "0");
});