首页 > 解决方案 > 如何创建内容下拉菜单栏?

问题描述

我想创建内容下拉栏,如图所示。当有人点击该栏时,内容会显示,如果他再次点击,下拉应该隐藏。我搜索了这个但没有得到任何好的解决方案。所以请帮我解决这个问题,参考图片以了解我的查询。

图片:

在此处输入图像描述

标签: javascripthtml

解决方案


I believe I would achieve this by a tiny customization with JQueryUI Accordion. Please refer this example:

https://jqueryui.com/accordion/#collapsible


推荐阅读