Html
    Css
    Js
* {
	padding:0;
	margin:0;
}
.Menu {
	width:130px;
	height:100%;
	position:absolute;
	left:-130px;
	transition:300ms;
	background-color:cornflowerblue;
}
.Menu li {
	text-align:center;
	list-style:none;
	width:130px;
	height:40px;
	color:white;
	line-height:40px;
	margin-top:20px;
}
.BtnToggle {
	position:absolute;
	left:0px;
	cursor:pointer;
	transition:300ms;
}
.BtnToggle p {
	width:30px;
	height:6px;
	margin-top:3px;
	display:block;
	left:0px;
	z-index:10000;
	background-color:black;
}
.active {
	left:0;
}
.BtnToggleClass {
	left:135px;
}

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

侧边伸缩导航(原创)

更新时间:2023-12-17 23:51:04

0