I'm using bootstrap3.1 recently, and I want to use "dropdown menu", here is official doc: http://getbootstrap.com/components/#dropdowns
The code is very sample and it likes below:
<div class="dropdown">
<button class="btn dropdown-toggle sr-only" type="button" id="dropdownMenu1" data-toggle="dropdown">
Dropdown
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li>
</ul>
</div>
But somehow it does not work, you could check here : http://jsfiddle.net/52DDe/1/
Is there something I forgot to load ?
thanks,
++++++++++++++++++++++++++++++++++++++++++
The problem is resolved now by add css:
Note :
To resolve this problem, CSS needs to set:
.test>.dropdown>.dropdown-menu
{
display: block;
margin-bottom: 5px;
position: static;
}
And use div:
<div class="test">
.....
</div>