我在Twitter Bootstrap 3.3.6中的下拉菜单中遇到问题
点击.dropdown
按钮后,我会正确显示.dropdown-menu
内容,如果我再次点击.dropdown
或.dropdown-menu
以外关闭.dropdown
按钮就会隐藏
点击.dropdown
后:
<ul class="nav nav-pills">
<li role="presentation" class="dropdown open">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="true">
Dropdown <span class="caret"></span>
</a>
<ul class="dropdown-menu">...</ul>
</li>
</ul>
Afert关闭.dropdown-menu
:
<ul class="nav nav-pills">
<li role="presentation" class="dropdown" style="display: none;">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
Dropdown <span class="caret"></span>
</a>
<ul class="dropdown-menu">...</ul>
</li>
</ul>
我该如何解决?