Chinaunix首页 | 论坛 | 博客
  • 博客访问: 727
  • 博文数量: 3
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 40
  • 用 户 组: 普通用户
  • 注册时间: 2018-04-25 20:22
文章分类
文章存档

2018年(3)

我的朋友
最近访客

分类: 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';
}







  • 视频



















阅读(61) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~