[英]Bootstrap 4 - left sidebar with menu after click icon
I looking for solution for create sidebar like on above photo.我正在寻找创建侧边栏的解决方案,如上图所示。
After click icon sidebar then display menu.单击图标侧边栏后显示菜单。
I have somelike this but I need to add extra menu after click like first screen:我有一些类似的但我需要在点击第一个屏幕后添加额外的菜单:
https://www.codeply.com/p/yRugA2FB3I https://www.codeply.com/p/yRugA2FB3I
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-expanded="false">
Dropdown link
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
Put this as dropdown list, try to edit css of the dropdown item.将其作为下拉列表,尝试编辑下拉项的 css。
or use this as well:或者也使用它:
<!-- Default dropright button -->
<div class="btn-group dropright">
<button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
Dropright
</button>
<div class="dropdown-menu">
<!-- Dropdown menu links -->
</div>
</div>
it is the element of bootstrap 4 that do dropdown on the right.它是 bootstrap 4 的元素,在右侧进行下拉。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.