Bootstrap about the use of drop-down menus

Source: Internet
Author: User

You need to wrap the drop-down menu trigger and drop- .dropdown down menu in, or another position: relative; declared element.

<div class= "dropdown" >  <button class= "btn btn-default dropdown-toggle" type= "button" id= "DropdownMenu1" Data-toggle= "dropdown" aria-haspopup= "true" aria-expanded= "true" >    dropdown    <span class= "Caret" > </span>  </button>  <ul class= "Dropdown-menu" aria-labelledby= "dropdownMenu1" >    < Li><a href= "#" >Action</a></li>    <li><a href= "#" >another action</a>< /li>    <li><a href= "#" >something else here</a></li> <li><a    href= "#" >separated link</a></li>  </ul></div>

  

  • Pop up: First line replaced .dropup by class
  • Right Justification: for .dropdown-menu adding .dropdown-menu-right
  •  分割线:<li role="separator" class="divider"></li>
  •     禁用:<li class="disabled"><a href="#">Disabled link</a></li>
  •     标题:<li class="dropdown-header">Dropdown header</li>

Bootstrap about the use of drop-down menus

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.