我正在研究新的 jqueryui menubar。
菜单栏似乎运行良好,但有时您的菜单项没有子项。我修改了上面的默认演示,使其具有顶级可点击菜单项。鼠标悬停在工具栏中显示正确的 URL,但单击时不会触发。
<div class="menubarItem ui-menubar-item" role="presentation">
<a href="#topLevelMenu" class="ui-corner-all" tabindex="-1" role="menuitem" id="toplevelmenu">
<span class="ui-button-text">
<!-- url should change to #topLevelMenu but doesn't -->
Clickable Top Menu
</span>
</a>
</div>
我把我的例子放到JS Bin中。此代码不显示在 JS Bin 中运行的哈希更改,但如果您将 html 保存在本地,则会显示它们。
关于如何让顶部菜单可点击(相对于下拉菜单)的任何想法?