Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
#div1 div {
	width:290px;
	height:200px;
	display:none;
	padding:5px;
	text-indent:2em;
	background:lavenderblush;
	color:#666;
	font-size:16px;
}
#div1 {
	font-size:0;
	width:300px;
	padding:20px;
	overflow:hidden;
}
#div1 input {
	font-size:14px;
	display:inline-block;
	width:100px;
	border:none;
	height:30px;
	line-height:30px;
	border-left:1px solid #cdcdcd;
	box-sizing:border-box;
}
#div1 input:first-of-type {
	border-left:none;
}
.active {
	background:darkcyan;
	color:#fff;
}

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

jquery写的选项卡

0