Html
    Css
    Js
* {
	margin:0px;
	padding:0px;
	list-style:none;
}
body {
	font-size:12px;
}
.nav {
	float:left;
	clear:both;
	margin:100px;
	display:inline;
}
.nav li {
	float:left;
	position:relative;
}
.nav li a {
	display:block;
	width:60px;
	padding:8px 0px 6px;
	text-align:center;
	color:#000;
	background:#ccc;
	text-decoration:none;
}
.nav li a:hover {
	background:#666;
	color:#fff;
}
.nav li ul {
	position:absolute;
	display:none;
}
.nav li ul li {
	float:none;
}
.nav li ul li a {
	background:#eee;
}

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

jQuery导航

0