Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
#lunbo ul li {
	width:100%;
	list-style:none;
	width:100%;
	height:250px;
	background-color:#f00;
	text-align:center;
}
#lunbo ul li:not(:first-child) {
	display:none;
}
.boxa1 {
	background-color:#01AAED;
}
.nav0 {
	margin:0 auto;
	height:43px;
}
.nav0 li {
	height:43px;
	line-height:43px;
	width:143px;
	list-style:none;
	float:left;
	position:relative;
	border-left:solid 1px white;
	z-index:2;
	text-align:center;
}
.nav0 li a {
	text-decoration:none;
	color:white;
}
.nav0 li:hover {
	background-color:#128ee3;
}
.left-box {
	margin-left:160px;
	width:143px;
	background-color:#f5f7f6;
	float:left;
}
.nav-2 li {
	height:57px;
	list-style:none;
	border-bottom:solid 1px gainsboro;
	line-height:57px;
	text-align:center;
	transition:all 0.5s;
}
.nav-2 li a {
	text-decoration:none;
	color:black;
}
.nav-2  li:hover {
	box-shadow:20px 20px 20px 20px rgba(0,0,0.8,0.3);
	border:none;
	border-radius:0px;
}
.right-box {
	width:1008px;
	height:347px;
	background-color:ghostwhite;
	float:left;
}
.item {
	height:347px;
	width:1008px;
	background-color:rgba(0,0,0,0.4);
	margin-left:144px;
	top:44px;
	position:absolute;
	z-index:1;
	display:none;
}
.nav-2 li:hover .item {
	display:block;
}
.nav-2 li:hover a {
	color:gray;
}
.nav-t {
	width:143px;
	background-color:#01AAED;
	height:90px;
	z-index:2;
	display:none;
}
.nav-t li {
	border-bottom:1px gainsboro solid;
}
.nav0 li:hover .nav-t {
	display:block;
	background-color:#01AAED;
}

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

常用的导航栏代码

更新时间:2020-12-29 01:04:06

0