在GitHub上查看

图文框

在引导中使用图形组件显示相关图像和文本的文档和示例。

当您需要显示一段内容(如带有可选标题的图像)时,请考虑使用 <figure>.

使用包括 .figure, .figure-img.figure-caption 类为HTML5 <figure><figcaption>元素提供一些基线样式。图中的图像没有明确的大小,因此请确保将 .img fluid 类添加到 <img> 中以使其具有响应性。

Placeholder 400x300
上图的标题。
<figure class="figure">
<img src="..." class="figure-img img-fluid rounded" alt="...">
<figcaption class="figure-caption">A caption for the above image.</figcaption>
</figure>

使用我们的文本工具可以很容易地调整图形的标题。

Placeholder 400x300
上图的标题。
<figure class="figure">
<img src="..." class="figure-img img-fluid rounded" alt="...">
<figcaption class="figure-caption text-end">A caption for the above image.</figcaption>
</figure>