【发布时间】:2018-02-12 02:13:13
【问题描述】:
我复制了下拉菜单的官方 Bootstrap 4 示例,但它不起作用,即没有任何内容被下拉。
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dropdown</a>
<div class="dropdown-menu" aria-labelledby="dropdown01">
<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>
【问题讨论】:
-
为我工作jsbin.com/bumeqopuwu/edit?html,output .. 你是否正确包含了库?
-
是的,我包括 bootstrap.css、jquery.js 和 bootstrap.js
-
你包含什么 bootstrap 4 版本(bootstrap.js、css)?
标签: javascript css html bootstrap-4