「Bootstrap 4入門」.badge-pillで角の丸いバッジを表示するサンプル

2020年12月30日

説明
.badge-pill  角の丸いバッジを表示
使用例

<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>
<body>

<div class="container">
  <h2>角の丸いバッジを表示</h2>
 <span class="badge badge-pill badge-primary">Primary</span>
 <span class="badge badge-pill badge-secondary">Secondary</span>
 <span class="badge badge-pill badge-success">Success</span>
 <span class="badge badge-pill badge-danger">Danger</span>
 <span class="badge badge-pill badge-warning">Warning;</span>
 <span class="badge badge-pill badge-info">Info</span>
 <span class="badge badge-pill badge-light">Light</span>
 <span class="badge badge-pill badge-dark">Dark</span>
</div>

 

Bootstrap4

Posted by arkgame