Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
li {
	list-style:none;
}
.content-menu-project {
	width:200px;
	margin-top:10px;
}
.content-menu-project .first-class-menu h3 {
	width:200px;
	height:64px;
	background:#64a359;
	font-size:32px;
	color:white;
	line-height:64px;
	text-align:center;
	box-shadow:inset 0 -1px 1px rgba(0,0,0,.35);
	cursor:pointer;
}
.content-menu-project .second-class-menu h4 {
	display:block;
	width:180px;
	height:50px;
	margin:2px auto 0;
	padding-top:8px;
	padding-bottom:6px;
	background:#b0d9a8;
	font-size:20px;
	color:white;
	text-align:center;
	box-shadow:inset 0 -1px 1px rgba(0,0,0,.35);
	cursor:pointer;
}
.content-menu-project .third-class-menu h5 {
	display:block;
	width:150px;
	height:50px;
	margin:1px auto 0;
	background:#f5f5f5;
	font-size:20px;
	color:#64a359;
	line-height:50px;
	text-align:center;
	box-shadow:inset 0 -1px 1px rgba(0,0,0,.35);
	cursor:pointer;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

动态菜单栏三级菜单

dynamicMenu(),动态菜单栏,参数为放置菜单栏html结构的位置对象

0