Html
    Css
    Js

    
                        
.container {
	width:700px;
	margin:0 auto;
	margin-top:50px;
	overflow:hidden;
	position:relative;
}
nav {
	height:30px;
	border:1px #d8d8d8 solid;
	font-size:0;
	position:relative;
}
.tap {
	width:25%;
	display:inline-block;
	line-height:30px;
	text-align:center;
	font-size:12px;
}
.active {
	position:absolute;
	background-color:#11ac63;
	width:25%;
	height:30px;
	transition:0.5s;
	left:0;
	color:#fff;
	font-size:12px;
	text-align:center;
	line-height:30px;
}
.content {
	left:0;
	position:relative;
	width:2800px;
	transition:0.5s;
}
.item {
	float:left;
	width:700px;
	text-align:center;
	height:500px;
}

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

jQuery tab切换效果(改进)

0