Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
ul,li,ol {
	list-style:none;
}
.tabar {
	width:200px;
	background:DarkSlateBlue;
	overflow:hidden;
}
.tabar li {
	width:100%;
	line-height:50px;
	color:#fff;
}
.tabar li span:hover {
	background:rgba(255,255,255,0.2);
}
.tabar li span {
	display:block;
	height:50px;
	cursor:pointer;
	padding-left:10px;
}
.tabar-item ul {
	display:none;
}
.tabar-item ul li {
	padding-left:30px;
	background:rgba(0,0,139,0.4);
}
.tabar-item ul li:hover {
	background:rgba(255,255,255,0.2);
}
.tabar-item ul li.active {
	background:rgba(255,255,255,0.2);
}
.tabar1 {
	width:200px;
	background:DodgerBlue;
}
.tabar1 li {
	cursor:pointer;
	text-align:center;
	position:relative;
}
.tabar1 li div {
	width:300px;
	height:400px;
	background:SkyBlue;
	position:absolute;
	top:0px;
	left:200px;
	display:none;
}
.tabar1 li span {
	display:block;
	color:#fff;
	height:50px;
	line-height:50px;
}
.tabar1 li:hover span {
	background:rgba(255,255,255,0.2);
}
.tabar1 li:hover div {
	display:block;
}

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

jquery二级菜单栏+css3代码

更新时间:2020-08-12 20:52:59

jq二级菜单栏+css3二级菜单栏

0