首页 新闻 会员 周边 捐助

标题在微信端运行不能点击??

0
悬赏园豆:5 [已关闭问题] 关闭于 2015-11-26 09:22

<script language=javascript>
function secBoard(n)
{
for(i=0;i<secTable.cells.length;i++)
secTable.cells[i].className="sec1";
secTable.cells[n].className="sec2";
for(i=0;i<mainTable.tBodies.length;i++)
mainTable.tBodies[i].style.display="none";
mainTable.tBodies[n].style.display="block";
}
</script>
<style type=text/css>
td {
font-size: 12px;
color: #000000;
line-height: 150%;}
.sec1 {
background-color: #EEEEEE;
cursor: hand;
color: #000000;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
border-right: 1px solid gray;
border-bottom: 1px solid #FFFFFF}
.sec2 {
background-color: #D4D0C8;
cursor: hand;
color: #000000;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
border-right: 1px solid gray;
font-weight: bold;}
.main_tab {
background-color: #D4D0C8;
color: #000000;
border-left:1px solid #FFFFFF;
border-right: 1px solid gray;
border-bottom: 1px solid gray; display:none;}
</style>
</head>

<body>


<table border=0 cellspacing=0 cellpadding=0 width=100% id=secTable>
<tr height=20 align=center>
<td class="sec2" width=10% onclick="secBoard(0)">标题1</td>
<td class="sec1" width=10% onclick="secBoard(1)">标题2</td>
<td class="sec1" width=10% onclick="secBoard(2)">标题3</td>
<td class="sec1" width=10% onclick="secBoard(3)">标题4</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=0 width=100%
height=120 id=mainTable class="main_tab">
<tbody style="display:block;">
<tr>
<td align=center valign=top> <br>
<br>
<h1>选项卡</h1><br />1</td>
</tr>
</tbody> <tbody style="display:none;">
<tr>
<td align=center valign=top> <br>
<br>
<h1>选项卡1</h1><br />2</td>
</tr>
</tbody> <tbody style="display:none;">
<tr>
<td align=center valign=top> <br>
<br>
<h1>选项卡2</h1><br />3</td>
</tr>
</tbody> <tbody style="display:none;">
<tr>
<td align=center valign=top> <br>
<br>
<h1>选项卡3</h1><br />4</td>
</tr>
</tbody>
</table>

一色的彩虹的主页 一色的彩虹 | 初学一级 | 园豆:199
提问于:2015-11-25 17:00
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册