「Bootstrap4入門」.card-header-tabsでビゲーションタブを実装するサンプル
使用例
<head> <title>Bootstrap 实例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="/twitter-bootstrap/4.3.1/css/bootstrap.min.css"> <script src="/jquery/3.2.1/jquery.min.js"></script> <script src="/popper.js/1.15.0/umd/popper.min.js"></script> <script src="/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <div class="card"> <div class="card-header"> <ul class="nav nav-tabs card-header-tabs"> <li class="nav-item"><a class="nav-link active" href="#">Tab#AA</a></li> <li class="nav-item"><a class="nav-link" href="#">Tab#BB</a></li> <li class="nav-item"><a class="nav-link" href="#">Tab#CC</a></li> </ul> </div> <div class="card-body"> <h5 class="card-title">Title AA</h5> <div class="card-text">Content BB</div> </div> </div>