我有一个网页,在这个菜单栏中,我有一个下拉组件列表的按钮。在这些组件下有一些子菜单组件。我不能得到这个。我想要主菜单和组件以及这些组件的子菜单。我尝试了以下代码
<ul id="menu-top" class="nav navbar-nav navbar-right">
<li><a href="dashboard.php" class="menu-top-active">DASHBOARD</a></li>
<li>
<a href="#" class="dropdown-toggle" id="ddlmenuItem" data-toggle="dropdown"> Categories <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
<ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">North,/ul>
<li role="presentation"><a role="menuitem" tabindex="-1" href="add-category.php">Add Category</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="manage-categories.php">Manage Categories</a></li>
</ul>
</li>
<li>
<ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">
<ul class="dropdown-menu" role="menu" aria-labelledby="ddlmenuItem">South/ul>
<li role="presentation"><a role="menuitem" tabindex="-1" href="add-language1.php">Add Language</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="manage-language1.php">Manage Language</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="manage-language1.php">Add Population</a></li>
</ul>
</li>
我希望它显示为enter image description here
小提琴是Fiddle
1条答案
按热度按时间qojgxg4l1#
试试这个代码