Custom Dropdown Menu

為{幸葍}努か 提交于 2020-01-26 04:14:05

问题


i'm searching for a dropdown menu like this:

http://www.staples.it/

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

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


回答1:


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()

Ex:

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

UPDATE

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



来源:https://stackoverflow.com/questions/34199837/custom-dropdown-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!