Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
	list-style:none;
}
.box {
	width:500px;
	height:500px;
	margin:20px;
	border:1px solid #ccc;
}
.box ul {
	height:30px;
	border-bottom:1px solid #ccc;
}
.box ul li {
	float:left;
	width:99px;
	line-height:30px;
	text-align:center;
	font-size:16px;
	border-right:1px solid #ccc;
	cursor:pointer;
}
.box ul li:last-child {
	width:100px;
	border:0;
}
.box ul li.current {
	color:#fff;
	background:#999;
}
.wrap {
	width:500px;
	height:470px;
	overflow:hidden;
}
.wrap > div {
	width:500px;
	height:470px;
	font-size:56px;
	color:red;
}

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

简单实用的选项卡

0