代码编辑器:
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
<button type="button" class="btn btn-primary" data-toggle="collapse"
7
data-target="#demo">
8
简单的可折叠组件
9
</button>
10
<div id="demo" class="collapse in">只要用心为用户挖掘想要的功能,这些不谋而合的想法就会不断出现
11
</div>
12
<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.js"></script>
13
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
14