我正在使用 Superfish jQuery 菜单系统,并且需要显示所有子级,无论级别如何。菜单仅显示所选项目的子项。也许有人可以帮我弄清楚如何修改代码以使其以这种方式工作。
节点的 HTML 示例:
<li class="root"><a href="#" title="Training" class="root">Training</a>
<ul>
<li class="sub"><a href="#" title="Workshops - Classroom" class="sub">Workshops - Classroom</a>
<ul>
<li class="sub"><a href="#" title="Business Analytics" class="sub">Business Analytics</a></li>
<li class="sub"><a href="#" title="Software Applications" class="sub">Software Applications</a></li>
<li class="sub"><a href="#" title="Selling Skills" class="sub">Selling Skills</a></li>
<li class="sub"><a href="#" title="Wal-Mart Focused" class="sub">Wal-Mart Focused</a></li>
</ul>
</li>
<li class="sub"><a href="#" title="Public Workshop Schedule & Registration Form" class="sub">Public Workshop Schedule & Registration Form</a></li>
<li class="sub"><a href="#" title="Webinars" class="sub">Webinars</a></li>
</ul>
</li>
现在的样子:
它需要看起来如何: