像很多网站账户设置页面里的多个页面标签怎么做的?? 就是页面中有标签头。然后点下去刷出不同的页面。我想用webuserscontrol做,貌似不行。请教下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 div显示tab效果也可使用jquery tab 用js可以实现,下面简单例子function secBoard(n) { var secTable = document.getElementById("secTable"); var mainTable = document.getElementById("mainTable"); for (i = 0; i < secTable.rows[0].cells.length; i++) secTable.rows[0].cells[i].className = "sec1"; secTable.rows[0].cells[n].className = "sec2"; for (i = 0; i < mainTable.tBodies.length; i++) mainTable.tBodies[i].style.display = "none"; mainTable.tBodies[n].style.display = "";} <table id="secTable" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="sec2" onmouseover="secBoard(0)"> SourceTitle1 </td> <td class="sec1" onmouseover="secBoard(1)"> SourceTitle2 </td> <td class="sec1" onmouseover="secBoard(2)"> SourceTitle3 </td> </tr> </table> <table id="mainTable" border="0" cellpadding="0" cellspacing="0"> <tbody style=""> <tr> <td align="center"> SourceContent<br /> SourceContent2 </td> </tr> </tbody> <tbody style="display: none;" > <tr> <td align="center"> SourceContent<br /> SourceContent2 </td> </tr> </tbody> </table> 小弟求助统计访问量 急!!!! asp:RegularExpressionValidator 不能验证空字符??? IE6、IE7、IE8 都兼容 下拉菜单 高手们帮帮忙看下。 两个验证控件的问题 建立正则表达式替换类的问题 有谁对sqlhelper数据访问层熟悉的高手请进!! 能不能不列出那么多参数? 4个asp.net菜鸟问题~回答就对给粉!不给粉木有小鸡鸡 !!!新手请教简单问题 !!! ASP调试问题,知道的帮助一下! 如何用脚本展开Select的下拉列表?
也可使用jquery tab
var secTable = document.getElementById("secTable");
var mainTable = document.getElementById("mainTable");
for (i = 0; i < secTable.rows[0].cells.length; i++)
secTable.rows[0].cells[i].className = "sec1";
secTable.rows[0].cells[n].className = "sec2";
for (i = 0; i < mainTable.tBodies.length; i++)
mainTable.tBodies[i].style.display = "none";
mainTable.tBodies[n].style.display = "";
}
<table id="secTable" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="sec2" onmouseover="secBoard(0)">
SourceTitle1
</td>
<td class="sec1" onmouseover="secBoard(1)">
SourceTitle2
</td>
<td class="sec1" onmouseover="secBoard(2)">
SourceTitle3
</td>
</tr>
</table>
<table id="mainTable" border="0" cellpadding="0" cellspacing="0">
<tbody style="">
<tr>
<td align="center">
SourceContent<br />
SourceContent2
</td>
</tr>
</tbody>
<tbody style="display: none;" >
<tr>
<td align="center">
SourceContent<br />
SourceContent2
</td>
</tr>
</tbody>
</table>