代码编辑器:
x
1
2
<meta charset="utf-8">
3
<meta name="viewport" content="width=device-width, initial-scale=1.0">
4
<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
5
<style>body {margin:20px}</style>
6
<div class="panel-group" id="accordion">
7
<div class="panel panel-info">
8
<div class="panel-heading">
9
<h4 class="panel-title">
10
<a data-toggle="collapse" data-parent="#accordion"
11
href="#collapseexample">点我进行展开,再次点我进行折叠 ( shown 事件 )
12
</a>
13
</h4>
14
</div>
15
<div id="collapseexample" class="panel-collapse collapse">
16
<div class="panel-body">只要用心为用户挖掘想要的功能,这些不谋而合的想法就会不断出现
17
</div>
18
</div>