您的位置:首页 > Web前端 > JavaScript

js实现tab选项卡函数代码

2010-04-22 00:00 1116 查看
*
{
padding-bottom: 0px;
margin: 0px;
padding-left: 0px;
padding-right: 0px;
font-size: 12px;
padding-top: 0px;
}
BODY
{
padding-left: 20px;
padding-top: 20px;
}
.wid240
{
width: 242px;
margin-bottom: 20px;
}
.wid180
{
width: 182px;
}
.tab
{
border-bottom: #000 1px solid;
border-left: #000 1px solid;
border-top: #000 1px solid;
border-right: #000 1px solid;
}
.tab UL
{
zoom: 1;
clear: both;
}
.tab UL:after
{
display: block;
height: 0px;
visibility: hidden;
clear: both;
content: "";
}
.tab UL LI
{
text-align: center;
line-height: 26px;
width: 60px;
display: inline;
background: #000;
float: left;
height: 26px;
color: #fff;
}
.tab UL LI.on
{
background: #fff;
color: #000;
}
.tabList
{
border-bottom: #000 1px solid;
border-left: #000 1px solid;
height: 150px;
border-top: #000 1px;
border-right: #000 1px solid;
}
.tabList .one
{
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
display: none;
color: #ff0000;
padding-top: 10px;
}
.tabList .block
{
display: block;
}



function setTab(name,m,n){
for( var i=1;i
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: