如何使用bootstrap隐藏和显示ul li中的项目 [英] how to hide and show the item in ul li using bootstrap

查看:966
本文介绍了如何使用bootstrap隐藏和显示ul li中的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个div,这个div有ul和ul下的一些项目。

我使用bootstrap绑定了这个ul。当我恢复浏览器时,我希望div ul应该在名为(+符号)的链接中折叠,当单击此符号(+)时,所有项目应显示为幻灯片。我想用bootstrap做这项工作。



请大家帮忙。



提前感谢。

i have a div and this div have the ul and some items in li under the ul.
i have bind this ul using bootstrap. when i restore down the browser, i want div ul should be collapse in a link called(+ sign) and when click on this sign (+) then the all item should be show as slide. i want to do this work using bootstrap.

please anyone help.

thanks in advance.

推荐答案

使用css的display属性你可以将它设置为阻止显示而无需隐藏点击+和 - image
using display property of css you can set it to block to show and none to hide on click of + and - image


这篇关于如何使用bootstrap隐藏和显示ul li中的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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