开发者

How to implement drop-down menus like below?

http://losangeles.kijiji.开发者_如何学JAVAcom/c-SelectCategory

That page's search menus on upper left.

Best with jQuery.


You don't need jQuery for this. You can use plain 'ol CSS.

This article from pixelspread shows how to create a CSS Drop Down Menu resulting in this. You might also want to look into these following:

  1. CSS Horizontal Drop-Down-Menu
  2. Simple JavaScript Drop Down Menu ( If you really want a JavaScript based one. )
  3. jQuery Drop Down Menu ( Written with jQuery if you like that.. )
  4. Another one in jQuery + CSS with very good examples and help around it.
  5. You could also check out this page, which provides you with code for a jQuery Drop Down Menu ( provided in the other posters link )


For a really simple & lightweight solution, check the Son of Suckerfish dropdowns. Silly name but very elegant. It uses the :hover pseudo-class to accomplish its magic.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜