HTML5 add implement Bootstrap drop-down list box mouse-over open plugin tutorial

Source: Internet
Author: User

I. Methods of Use
<link rel= "stylesheet" href= "//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" >
<script src= "Js/1.11.3/jquery.min.js" ></script>
<script src= "//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js" ></script>
<script src= "Dist/jquery.bootstrap-dropdown-hover.min.js" ></script>


Second, HTML structure
<div class= "Btn-group" >
<button type= "button" class= "Btn btn-default dropdown-toggle"
Data-toggle= "dropdown" aria-haspopup= "true" aria-expanded= "false" >
Action <span class= "caret" ></span>
</button>
<ul class= "Dropdown-menu" >
<li><a href= "#" >Action</a></li>
<li><a href= "#" >another action</a></li>
<li><a href= "#" >something Else here</a></li>
<li role= "separator" class= "divider" ></li>
<li><a href= "#" >separated link</a></li>
</ul>
</div>

Third, initialize the plug-in
Method One:
$.fn.bootstrapdropdownhover ({
Configuration parameters
});

Method Two:
$ (' [data-toggle= ' dropdown '] '). Bootstrapdropdownhover ({
});

If it is a navbar, it can be initialized in the following way:
$ ('. NavBar [data-toggle= "dropdown"] '). Bootstrapdropdownhover ({
});

Iv. methods
$ (selector). Bootstrapdropdownhover (methodName, parameter);

Keymob, focus on mobile advertising platform. Keymob Mobile Advertising Platform is the leading mobile advertising platform in China, we are committed to creating a multi-win mobile advertising platform for advertisers.

HTML5 add implement Bootstrap drop-down list box mouse-over open plugin tutorial

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.