菜鸟教程 trybs_ref_js_collapse_simple 在线代码实例

运行 保存 全屏 右侧展示 实时查看
主题:

 <div class="container">
      <h2>Simple Collapsible</h2>
      <button type="button" class="btn btn-info" data-toggle="collapse" data-target="#demo">简单的折叠</button>
      <div id="demo" class="collapse">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit,
        sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
        quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
      </div>
    </div>

    <script src="//apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="//apps.bdimg.com/libs/bootstrap/3.2.0/js/bootstrap.min.js"></script>