zoukankan      html  css  js  c++  java
  • jQuery+Superfish制作下拉菜单

    superfish制作下拉菜单真的很方便而好很好用,而且还可以通过Superfish提供的参数来控制下拉菜单的不同效果,而且他没有层级限制,换句话说可以通过Superfish来写你想要的层级菜单。

    官方帮助文档:

    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. Use display:none rather than left:-9999em to hide submenus. To make this step easy, there are 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.
      <script src="jQuery.js"></script>
      <script src="superfish.js"></script>
    3. Call superfish() on the containing ul element.
      <script>
      
      	jQuery(document).ready(function() {
      		jQuery('ul.sf-menu').superfish();
      	});
      
      </script>
      There are many options available to customise your menu. You can find out about them in the Options tab of this site.

    这是国内整理文件。

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

  • 相关阅读:
    Android大牛
    在学习oauth时学到的
    using-jade-and-grunt-to-speed-up-html-production
    build-your-microservices-api-with-swagger
    json-web-token-apache-shiro
    WebSocket对象特性和方法
    芝麻教程
    how to export multiple SVG graphics in illustrator
    直播后台
    关于在chrome中响应不出现在XHR里的远影
  • 原文地址:https://www.cnblogs.com/vigarbuaa/p/4317199.html
Copyright © 2011-2022 走看看