<
Title.hide{
display: none;
}
.item .header{
height: 35px;
background-color: #2459a2;
color: white;
line-height: 35px;
}
.item .header:hover{
height: 35px;
background-color: black;
color: yellow;
line-height: 35px;
}
菜单1
内容1
内容1
内容1
菜单2
菜单3
菜单4
function ChangeMenu(nid){
var current_header = document.getElementById(nid);
var item_list = current_header.parentElement.parentElement.children;
for(var i=0;i
var current_item = item_list[i];
current_item.children[1].classList.add('hide');
}
current_header.nextElementSibling.classList.remove('hide');
}