Bootstrap CSS Component drop-down menu (dropdown) _javascript tips

Source: Internet
Author: User
Tags button type

Bootstrap Drop-down menu, commonly used in development projects, today to introduce you

Dropdown, Dropdown-menu, Dropdown-header, divider, Dropdown-submenu
For example, see Drop-down menu. html

Source code
. Dropup,
. Dropdown {
 position:relative
}
. Dropdown-toggle:focus {
 outline:0
}
. Dropdown-menu {
 position:absolute;
 top:100%;
 left:0;
 z-index:1000;
 Display:none;
 Float:left;
 min-width:160px;
 padding:5px 0;
 margin:2px 0 0;
 font-size:14px;
 Text-align:left;
 List-style:none;
 Background-color: #fff;
 -webkit-background-clip:padding-box;
     Background-clip:padding-box;
 border:1px solid #ccc;
 border:1px solid Rgba (0, 0, 0,.);
 border-radius:4px;
 -webkit-box-shadow:0 6px 12px rgba (0, 0, 0,. 175);
     box-shadow:0 6px 12px rgba (0, 0, 0,. 175);
dropdown-menu.pull-right {
 right:0;
 Left:auto
}
. Dropdown-menu. Divider {
 height:1px;
 MARGIN:9PX 0;
 Overflow:hidden;
 Background-color: #e5e5e5;
Dropdown-header {
 display:block;
 PADDING:3PX 20px;
 font-size:12px;
 line-height:1.42857143;
 Color: #777;
 White-space:nowrap;
}

<! 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.