gpt4 book ai didi

javascript - 如何使用包含所有菜单项的容器获得全宽下拉区域

转载 作者:行者123 更新时间:2023-11-28 05:09:53 26 4
gpt4 key购买 nike

你能帮我做菜单吗:

like this

我找到了这样的链接

`http://jsfiddle.net/KyleMit/6cu8f43m/`

但它没有获得带有容器菜单项的全宽导航栏

最佳答案

在该代码中还提到了全 Angular 子菜单项的详细信息。

在所有li项中选择全 Angular 。如下所示:

 <li class="dropdown full-width">
<a href="#" class="dropdown-toggle"
data-toggle="dropdown">
Fill Width <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Really Really Really Really Really Really Really Really Really Really Really Really Really Really Really Really Really Long
</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
<li class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>

关于javascript - 如何使用包含所有菜单项的容器获得全宽下拉区域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39630657/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com