「Bootstrap4入門」.collapseで折りたたみを実装する

使用例

<div class="container">
  <h2>折りたたみのサンプル</h2>
  <p>2hhhhh</p>
  <button type="button" class="btn btn-primary" data-toggle="collapse" data-target="#demo">test</button>
  <div id="demo" class="collapse">
 111
222
333
  </div>
</div>

 

Bootstrap4

Posted by arkgame