自定义下拉菜单 [英] Custom Dropdown Menu

查看:95
本文介绍了自定义下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在搜索像这样的下拉菜单:

i'm searching for a dropdown menu like this:

http://www.staples.it/

您可以通过按下"Forfture per ufficio"或"informatica"来激活它.

You can active it pressing on " Forniture per ufficio " or " informatica ".

如何使用下拉列表下推div,如何阻止它?

How can I push down a div with the dropdown, how I can block it?

推荐答案

您可以在菜单下创建一个相对位置为高度为0的块. 然后,在Click事件上,您只需使用函数 slideDown()

You can create a block with relative position under the menu and height: 0; Then on Click event you just use function slideDown() and slideUp()

例如:

$(".selector").slideDown();

更新

这是为您提供的类似脚本 https://jsfiddle.net/c2nuj88u/

Here is the similar script for you https://jsfiddle.net/c2nuj88u/

这篇关于自定义下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆