Bootstrap CSS Component button pull-down menu _javascript Tips

Source: Internet
Author: User
Tags button type

Button drop down menu

Combined with. Btn-group (BTN-GROUP-LG/BTN-GROUP-SM/BTN-GROUP-XS). Dropup btn. Dropdown-menu
The button Pull-down menu is encapsulated on the basis of an ordinary Pull-down menu. The BTN style has an effect, similar to clicking a button button and then displaying a hidden drop-down menu.

Combo drop down Menu
Detached pull-down Menu
Drop-down menu with Bounce up

source code, CSS Implementation mode is mainly set. The bottom of the Dropdown-menu style container is 100%
. Dropup dropdown-menu,. Navbar-fixed-bottom. Dropdown.
Dropdown-menu {
 top:auto;//height adaptive
 bottom:100%;//distance dropup Style The width of the element at the bottom 100%, that is, by the top border, pop-up
 margin-bottom up: 2px;
}

<! DOCTYPE html>  

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

Related Article

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.