図表

Bootstrap の図表コンポーネントで、関連する画像とテキストを表示するためのドキュメントとサンプルです。

画像とキャプションのようなコンテンツを表示したいときは、<figure> の使用を検討してください。

.figure.figure-img および .figure-caption クラスで、HTML5 の <figure><figcaption> 要素の基本的なスタイルを適用します。figure 内の画像にはサイズが明示されないので、.img-fluid クラスを <img> に指定し、レスポンシブにします。

A generic square placeholder image with rounded corners in a figure.
A caption for the above image.
<figure class="figure">
  <img src="..." class="figure-img img-fluid rounded" alt="A generic square placeholder image with rounded corners in a figure.">
  <figcaption class="figure-caption">A caption for the above image.</figcaption>
</figure>

テキストユーティリティ を使うと、図表のキャプションが簡単に整列できます。

A generic square placeholder image with rounded corners in a figure.
A caption for the above image.
<figure class="figure">
  <img src="..." class="figure-img img-fluid rounded" alt="A generic square placeholder image with rounded corners in a figure.">
  <figcaption class="figure-caption text-right">A caption for the above image.</figcaption>
</figure>