Html
    Css
    Js
body {
	padding:0;
	margin:0;
	font-family:"microsoft yahei";
	background-color:#0c093c;
}
* {
	box-sizing:border-box;
}
.nav {
	width:400px;
	transform:translate(-50%,-50%);
	top:50%;
	left:50%;
	position:absolute;
}
ul {
	width:100px;
	height:20px;
	float:left;
	/* border:1px solid #ecfcff;
	*/
			cursor:pointer;
	background:black;
	line-height:20px;
}
li {
	height:40px;
	width:100px;
	background:#5f6caf;
	margin-left:-40px;
	text-align:center;
	line-height:40px;
	display:none;
	/* border:1px solid #ecfcff;
	*/
}
ul,li {
	color:#FFFFFF;
	font-size:15px;
	list-style:none;
	/* text-align:center;
	*/
}
a {
	text-decoration:none;
}

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

简易jQuery二级菜单

更新时间:2020-02-09 23:19:58

0