我有一张桌子,其中一行有一张儿童桌子。 当点击类“Show”的锚时,我想:显示/隐藏和幻灯片表
- 使子表可见...滑动它。
- 将锚类从“显示”更改为“隐藏”。
我该怎么做?
我的代码如下:
<table class="Parent">
<tr>
<td class="Task"></td>
<td>Row1</td>
</tr>
<tr>
<td class="Task"><a class="Show">Show</a></td>
<td>Row 2
<table class="Child" style="display: none">
<tr><td>Row1</td></tr>
<tr><td>Row2</td></tr>
</table>
</td>
</tr>
</table>
谢谢!
退房'的slideToggle()'或'隐藏()'和'显示()' – 2013-04-11 17:15:26