Jquery+superfish making drop-down menu

Source: Internet
Author: User

Superfish make pull-down menu is really convenient and good to use, but also through the parameters provided by Superfish to control the different effects of the drop-down menu, and he does not have a hierarchical limit, in other words, you can write the level menu you want through Superfish.

Official Help Documentation:

http://users.tpg.com.au/j_birch/plugins/superfish/#getting-started

  1. Begin with a working pure CSS dropdown menu based on nested unordered lists. For each li:hover selector in your CSS, add an equivalent li.sfhover selector. Usedisplay:noneRather thanleft:-9999emTo hide submenus. To do this step easy, there is cross-browser CSS files for a variety of menu types available in the download section of This site.
    <link href="superfish.css" rel="stylesheet" media="screen">
  2. Link to the Superfish.js file (after including jQuery) using a script tag in the head of your document.
    <scriptsrc=" Jquery.js "></script > <script src=< Span class= "token punctuation" > "Superfish.js"  ></script>             
  3. Call Superfish () on the containing ULElement.
    <script>jquery.ready (function ({jquery ' Ul.sf-menu ' " .superfish () ;} ; </script>   
    There is many options available to customise your menu. You can find out about them in the Options tab of this site.

This is a domestic filing.

Http://blog.chinaunix.net/uid-26615074-id-3078698.html

Jquery+superfish making drop-down menu

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.