选项卡(一)--纯CSS内页内容切换选项卡

<!--纯CSS内页内容切换选项卡--> <h4>纯CSS内页内容切换选项卡</h4> <script language="JavaScript"> function tabit(id,cid) { tabwoman.className="taboff";tabman.className="taboff";tabsport.className="taboff";tableisure.className="taboff";tabshoes.className="taboff";tabdecor.className="taboff";id.className="tabon"; cwoman.style.display="none";cman.style.display="none";csport.style.display="none";cleisure.style.display="none";cshoes.style.display="none";cdecor.style.display="none";cid.style.display="block"; //winname=cid; } function showall() { tabwoman.className="tabon";tabman.className="tabon";tabsport.className="tabon";tableisure.className="tabon";tabshoes.className="tabon";tabdecor.className="tabon"; cwoman.style.display="block";cman.style.display="block";csport.style.display="block";cleisure.style.display="block";cshoes.style.display="block";cdecor.style.display="block"; } </script> <style> td { font-family: "Verdana"; font-size: 9pt; padding:3px; } .tabon { background-color: #ffffff; border-top: 1px solid #e3e3e3;border-left: 1px solid #e3e3e3; color: #DB5B6F; font-weight: bold; } .taboff { background-color: #f5f5f5; border-top: 1px solid #e3e3e3;border-left: 1px solid #e3e3e3;border-bottom: 1px solid #e3e3e3; color: #666666; font-weight: bold; } .tdbody { border-bottom: 1px solid #e3e3e3;border-right: 1px solid #e3e3e3;border-left: 1px solid #e3e3e3; line-height:50px; background-color: #ffffff; } .tdbody2 { border-right: 1px solid #e3e3e3;border-left: 1px solid #e3e3e3; line-height:50px; background-color: #ffffff; } </style> </head> <body onLoad="tabit(tabwoman,cwoman)"> <table border="0" cellpadding="0" cellspacing="0" width="340"> <tr> <td class="taboff" id="tabwoman" style="cursor:hand" onClick="tabit(tabwoman,cwoman)" align="center">女装</td> <td class="taboff" id="tabman" style="cursor:hand" onClick="tabit(tabman,cman)" align="center">男装</td> <td class="taboff" id="tabsport" style="cursor:hand" onClick="tabit(tabsport,csport)" align="center">运动</td> <td class="taboff" id="tableisure" style="cursor:hand" onClick="tabit(tableisure,cleisure)" align="center">休闲</td> <td class="taboff" id="tabshoes" style="cursor:hand" onClick="tabit(tabshoes,cshoes)" align="center">鞋类</td> <td class="taboff" id="tabdecor" style="cursor:hand" onClick="tabit(tabdecor,cdecor)" align="center" style="border-right: 1px solid #E3E3E3">配饰</td> </tr> <tr id="cwoman" style="display:none"> <td colspan="6" class="tdbody"><a href="#">女装</a></td> </tr> <tr id="cman" style="display:none"> <td colspan="6" class="tdbody"><a href="#">男装</a></td> </tr> <tr id="csport" style="display:none"> <td colspan="6" class="tdbody"><a href="#">运动</a></td> </tr> <tr id="cleisure" style="display:none"> <td colspan="6" class="tdbody"><a href="#">休闲</a></td> </tr> <tr id="cshoes" style="display:none"> <td colspan="6" class="tdbody"><a href="#">鞋类</a></td> </tr> <tr id="cdecor" style="display:none"> <td colspan="6" class="tdbody"><a href="#">配饰</a></td> </tr> </table>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值