I"m sorry I didn"t ask my question very clearly, but in fact, my actual request is like this.
my ul.header_category_list and div.header_category_contents are positioned through the left and right structure, and the mouseover and mouseout of the jquery I wrote can only be displayed when the nth li is displayed when the mouse hovers over the nth div.header_category_content. But when the mouse moves from the li to the corresponding div.header_category_content, the corresponding div.header_category_content disappears immediately and cannot be displayed.
< div id= "header_category" >
<ul class="header_category_list">
<li class="header_category_item">1</li>
<li class="header_category_item">2</li>
<li class="header_category_item">3</li>
<li class="header_category_item">4</li>
<li class="header_category_item">5</li>
<li class="header_category_item">6</li>
</ul>
<div class="header_category_contents">
<div class="header_category_content">1</div>
<div class="header_category_content">2</div>
<div class="header_category_content">3</div>
<div class="header_category_content">4</div>
<div class="header_category_content">5</div>
<div class="header_category_content">6</div>
</div>
< / div >
$(function () {
$("li.header_category_item").hover(
function(){ $("div.header_category_content").eq($(this).index()).show().siblings().hide();
},
function(){$("div.header_category_content").hide();}
);
})