Html
    Css
    Js
* {
	padding:0px;
	margin:0px;
}
body {
	position:relative;
	font-size:14px;
	background:#ccc;
	font-family:"微软雅黑";
}
ul {
	list-style:none;
}
a {
	text-decoration:none;
	color:#333;
}
.header-nav {
	background:#dd3377;
}
.contain {
	position:relative;
	width:1010px;
	margin:0 auto;
}
.trig {
	display:none;
	position:absolute;
	bottom:0px;
	left:45px;
	border-bottom:6px solid lightsalmon;
	border-left:8px solid transparent;
	border-right:8px solid transparent;
}
.second-bg {
	display:none;
	position:relative;
	width:100%;
	height:40px;
	background:#fff;
	z-index:1;
}
.nav-list {
	position:relative;
	width:100%;
	height:40px;
	z-index:2;
}
.nav-list>li {
	position:relative;
	float:left;
	width:100px;
	height:40px;
	line-height:40px;
	text-align:center;
	border-right:1px solid #e4e4e4;
}
.nav-list>li>a {
	color:#fff;
	display:block;
	position:relative;
}
.nav-list>li ul {
	position:absolute;
	width:100px;
	display:none;
	z-index:666;
}
.nav-list>li ul li {
	float:left;
	height:40px;
	font-size:13px;
	line-height:40px;
	margin:0 2px;
}
.nav-list>li ul li a:hover {
	color:#dd3377;
}

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

漂亮二级菜单

0