Bootstrap drop-down Menu effect instance code sharing _javascript Tips

Source: Internet
Author: User
Tags button type

The drop down menu dropdown is not the <select><option value= ' ></option></select> ' in the form, but the kind that is common in the navigation bar.

Bootstrap's official website has little explanation for the Pull-down menu dropdown, even their official English website.

The official website has no specific explanation for how to change the background color of a drop-down menu, if you modify the default black hyperlink for a Drop-down menu, and how to change the Drop-down menu to a normal hyperlink instead of a text style.

Moreover, the official website's hyperlink code is a mixture of many useless parameters.

The author studied for a long time before finding a way to change the Pull-down menu.
The following is IE8 to bootstrap drop-down menu, after you use bootstrap remember to use IE8 to test , Google and other advanced browsers cover up a lot of bugs.

Provides how to change the background color of a drop-down menu, and if you modify the default black hyperlink for a drop-down menu, change the Drop-down menu to a normal hyperlink instead of the style of the text.

As to how to change the box of the Pull-down menu, the author is powerless.

The above Drop-down menu for specific implementation please see the following code:

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">  

No jquery support Pull-down menu is not working. The Drop-down menu is a JavaScript component.

Before Bootstrap, write a drop-down menu to define a hidden layer, which is displayed when the mouse hovers over or clicks on the corresponding hyperlink. When the mouse hovers over this hidden layer, the hidden layer still appears, and when the mouse leaves this hidden layer, the hidden layer continues to be hidden from the display, which is cumbersome.

If you want to further study, you can click here to learn, and then attach 3 wonderful topics:

Bootstrap Learning Course

Bootstrap Practical Course

Bootstrap Plugin Usage Tutorial

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.

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.