我有一個層疊在一起的菜單,如下圖所示。
我試著用引導菜單下拉來做這件事,但是不能做對。有人能幫忙嗎?
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Versioning
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Upload</a></li>
<li><a class="dropdown-item" href="#">Backup</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">All Versions</a></li>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Arrangement
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="#">Reorder</a></li>
<li><a class="dropdown-item" href="#">Rotate</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Options</a></li>
</ul>
</li>
</ul>