bootstrap折叠问题
bootstrap折叠问题为什么点击Home的时候展开,而我的菜单不收缩,我是想要展开一个其他的都是收缩的。...
bootstrap折叠问题为什么点击Home的时候展开,而我的菜单不收缩,我是想要展开一个其他的都是收缩的。
展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励20(财富值+成长值)
1个回答
2018-04-19
展开全部
<div class="panel-group" id="add">
<div class="panel panel-danger">
<div class="panel-heading">
<a href="#show" data-toggle="collapse" data-parent="#add">第一部分</a>
</div>
<div class="collapse in active" id="show">
<div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur consequuntur quod reprehenderit vero blanditiis eius non repudiandae itaque dicta harum aliquam optio eos iste rerum enim dignissimos quos veritatis impedit.</div>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<a href="#show1" data-toggle="collapse" data-parent="#add">第二部分</a>
</div>
<div class="collapse" id="show1">
<div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur consequuntur quod reprehenderit vero blanditiis eius non repudiandae itaque dicta harum aliquam optio eos iste rerum enim dignissimos quos veritatis impedit.</div>
</div>
</div>
</div>
<div class="panel panel-danger">
<div class="panel-heading">
<a href="#show" data-toggle="collapse" data-parent="#add">第一部分</a>
</div>
<div class="collapse in active" id="show">
<div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur consequuntur quod reprehenderit vero blanditiis eius non repudiandae itaque dicta harum aliquam optio eos iste rerum enim dignissimos quos veritatis impedit.</div>
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<a href="#show1" data-toggle="collapse" data-parent="#add">第二部分</a>
</div>
<div class="collapse" id="show1">
<div class="panel-body">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur consequuntur quod reprehenderit vero blanditiis eius non repudiandae itaque dicta harum aliquam optio eos iste rerum enim dignissimos quos veritatis impedit.</div>
</div>
</div>
</div>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询