如何讓我的所有嵌套列表在單擊時摺疊和展開。副導航菜單問題
這是我的xHTML。
<ul>
<li><a href="some-link.php">First Nested List</a></li>
<li><a href="some-link.php">First Nested List</a></li>
<li><a href="some-link.php">First Nested List</a>
<ul>
<li><a href="some-link.php">Second Nested List</a></li>
<li><a href="some-link.php">Second Nested List</a></li>
<li><a href="some-link.php">Second Nested List</a>
<ul>
<li><a href="some-link.php">Third Nested List</a></li>
<li><a href="some-link.php">Third Nested List</a></li>
<li><a href="some-link.php">Third Nested List</a>
<ul>
<li><a href="some-link.php">Fourth Nested List</a></li>
<li><a href="some-link.php">Fourth Nested List</a></li>
<li><a href="some-link.php">Fourth Nested List</a></li>
</ul>
</li>
<li><a href="some-link.php">Third Nested List</a></li>
<li><a href="some-link.php">Third Nested List</a></li>
</ul>
</li>
<li><a href="some-link.php">Second Nested List</a></li>
<li><a href="some-link.php">Second Nested List</a></li>
</ul>
</li>
<li><a href="some-link.php">First Nested List</a></li>
<li><a href="some-link.php">First Nested List</a></li>
</ul>
我不能讓這與我的代碼工作:( – synonyms 2010-08-18 04:11:38
對 - 忘了我添加了一個類到最外面的ul - 看到我的更新:-) – brendan 2010-08-18 04:30:25
仍然無法讓它工作:( – synonyms 2010-08-18 04:32:48