开发者

jQuery menu styling

开发者 https://www.devze.com 2023-02-13 11:31 出处:网络
I\'ve seen a really nice jQuery-like menu on force.com (after you log-in). And I can\'t find a tutorial/example on how to create i开发者_JS百科t using jQuery.

I've seen a really nice jQuery-like menu on force.com (after you log-in). And I can't find a tutorial/example on how to create i开发者_JS百科t using jQuery.

It looks like this:

Before hover:

jQuery menu styling

On Hover:

jQuery menu styling

On Click:

jQuery menu styling

Anyone knows where I can find a good example on how to create one of these?

Thanks.


This is a very basic one :) however u do need css to style it how ever u wish :)

<ul>
    <li class="header">Header</li>
    <li class="menu" style="display:none;">
       <ul>
          <li>Me</li>
       </ul>
    </li>
</ul>



$('.header').click(function (){
 $('.menu').toggle();
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号