分类: Java
2018-05-29 16:43:01
body { margin:0;
font-family:微软雅黑;
font-size:14px;
color:#333;}
ul { margin:0;
list-style-type:none;
padding:0;}
a { color:#333;
text-decoration:none;}
.tab { border-bottom:2px solid #F00;
height:35px;
line-height:35px;
min-width:1100px;}
.tab ul { width:1100px;
margin:auto;}
.tab li { float:left;}
.select { background-color:#F00;
color:#FFF;
font-weight:bold;
border:none;}
.tab li a { width:90px;
height:34px;
margin:0;
display:inline-block;
text-align:center;
line-height:30px;}
.center { width:1100px;
margin:auto;}
function Tab(a,n)
{
var arr=document.getElementsByTagName('a');
for(var i=0;i
document.getElementById('div'+(i+1)).style.display='none';
arr[i].removeAttribute('class');
}
a.setAttribute('class','select');
document.getElementById('div'+n).style.display='block';
}