js实现tab选项卡函数代码
*
{
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
- one1
- one2
- one3
- one4
cont_one_1
cont_one_2
cont_one_3
cont_one_4
- tow1
- tow2
- tow3
cont_tow_1
cont_tow_2
cont_tow_3
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]