三级菜单
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="reset.css">
<script type="text/javascript" src="http://file.eheres.org/ajax/base/frame/jq/jquery-1.7.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('.z-menuItem').hover(function(){
var menuHeight = $(this).find('.z-menuItem-body').css('height');
$(this).find('.z-menuItem-body').css('height',0).show().animate({height:menuHeight},150);
},function(){
$(this).find('.z-menuItem-body').hide()
});
$('.z-menuNav-Item').hover(function(){
var menuHeight = $(this).find('.z-menuNav-body').css('height');
$(this).find('.z-menuNav-body').css('height', menuHeight );
$(this).find('.z-menuNav-body').css('width',0).show().animate({width:400},150);
},function(){
$(this).find('.z-menuNav-body').hide();
});
});
</script>
<style type="text/css">
.z-menuItems{}
.z-menuItem{
width: 150px;
float: left;
}
.z-menuItem-header{
width: 120px;
height: 40px;
line-height: 30px;
text-align: center;
background: #298ec9;
font-size: 20px;
font-weight: bold;
padding: 0px 15px 0px 15px;
}
.z-menuItem-header a{
color: #fff;
}
.z-menuItem-body{
position: absolute;
width: 300px;
z-index: 10000;
display: none;
}
.z-menuNav{
border: 1px solid #ff6600;
line-height: 30px;
clear: both;
}
.z-menuNav-Item{
position: relative;
z-index: 1;
}
.z-menuNav-header{
position: relative;
z-index: 24;
background: #fff;
border-bottom: 1px dashed #d8d8d8;
}
.z-menuNav-header:hover{
width: 299px;
background: #fffaec;
border-bottom: 1px solid #ddddde;
border-top: 1px solid #ddddde;
margin-right: 2px;
background: url();
}
.z-menuNav-header ul{
margin: 0px 10px 0px 10px;
}
.z-menuNav-header-title a{
font-size: 16px;
color: #000000;
}
.z-menuNav-header-content a{
color: #999999;
}
.z-menuNav-body{
width: 360px;
position: absolute;
left: 298px;
top: 0px;
background: #fffaec;
overflow: hidden;
border: 1px solid #dfdfdf;
padding: 20px;
overflow: hidden;
z-index: 21;
display: none;
}
.z-menuNav-body dl{
border-bottom: 1px solid #ddddde;
}
.z-menuNav-body dl dd a{
margin: 0px 5px 0px 5px;
}
</style>
</head>
<body>
<ul class="z-menuItems">
<li class="z-menuItem">
<!--头部导航一级-->
<div class="z-menuItem-header">
<a href="javascript:void(0);">专业市场</a>
</div>
<div class="z-menuItem-body">
<ul class="z-menuNav">
<li class="z-menuNav-Item">
<!--二菜单级-->
<div class="z-menuNav-header">
<ul>
<li class="z-menuNav-header-title">
<a href="javascript:void(0);">文体乐器工艺礼品市场</a>
</li>
<li class="z-menuNav-header-content">
<a href="javascript:void(0);">玩具</a>
<a href="javascript:void(0);">珠宝首饰</a>
<a href="javascript:void(0);">仿真花</a>
<a href="javascript:void(0);">装饰工艺</a>
<a href="javascript:void(0);">相框</a>
</li>
</ul>
</div>
<!--三菜单级-->
<div class="z-menuNav-body">
<dl>
<dt>一层</dt>
<dd>
<a href="javascript:void(0);">玩具</a>
<a href="javascript:void(0);">花类(仿真花)</a>
<a href="javascript:void(0);">花类配件</a>
<a href="javascript:void(0);">东辅房(玩具/饰品)</a>
</dd>
</dl>
<dl>
<dt>二层</dt>
<dd>
<a href="javascript:void(0);">玩具</a>
<a href="javascript:void(0);">花类(仿真花)</a>
<a href="javascript:void(0);">花类配件</a>
<a href="javascript:void(0);">东辅房(玩具/饰品)</a>
</dd>
</dl>
</div>
</li>
<li class="z-menuNav-Item">
<div class="z-menuNav-header">
<ul>
<li class="z-menuNav-header-title">
<a href="javascript:void(0);">文体乐器工艺礼品市场</a>
</li>
<li class="z-menuNav-header-content">
<a href="javascript:void(0);">玩具</a>
<a href="javascript:void(0);">珠宝首饰</a>
<a href="javascript:void(0);">仿真花</a>
<a href="javascript:void(0);">装饰工艺</a>
<a href="javascript:void(0);">相框</a>
</li>
</ul>
</div>
<div class="z-menuNav-body">
<dl>
<dt>一层</dt>
<dd>
<a href="javascript:void(0);">玩具</a>
<a href="javascript:void(0);">花类(仿真花)</a>
<a href="javascript:void(0);">花类配件</a>
<a href="javascript:void(0);">东辅房(玩具/饰品)</a>
</dd>
</dl>
<dl>
<dt>二层</dt>
<dd>
<a href="javascript:void(0);">玩具</a>
<a href="javascript:void(0);">花类(仿真花)</a>
<a href="javascript:void(0);">花类配件</a>
<a href="javascript:void(0);">东辅房(玩具/饰品)</a>
</dd>
</dl>
</div>
</li>
</ul>
</div>
</li>
<div class="clear"></div>
</ul>
</body>
</html>