首页 > 代码库 > bootstarap下拉菜单

bootstarap下拉菜单

<div class="dropdown">
  <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
    Dropdown
    <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
    <li role="presentation"><a role="menuitem" tabindex="-1" href=http://www.mamicode.com/"#">Action</a></li>
    <li role="presentation"><a role="menuitem" tabindex="-1" href=http://www.mamicode.com/"#">Another action</a></li>
    <li role="presentation"><a role="menuitem" tabindex="-1" href=http://www.mamicode.com/"#">Something else here</a></li>
    <li role="presentation"><a role="menuitem" tabindex="-1" href=http://www.mamicode.com/"#">Separated link</a></li>
  </ul>
</div>

bootstarap下拉菜单