Awọn isiro
Iwe ati awọn apẹẹrẹ fun iṣafihan awọn aworan ti o jọmọ ati ọrọ pẹlu paati eeya ni Bootstrap.
Nigbakugba ti o nilo lati ṣe afihan nkan ti akoonu — bii aworan pẹlu akọle iyan, ronu nipa lilo faili <figure>
.
Lo awọn to wa .figure
, .figure-img
ati .figure-caption
awọn kilasi lati pese diẹ ninu awọn aza laini fun HTML5 <figure>
ati <figcaption>
awọn eroja. Awọn aworan ni awọn isiro ko ni iwọn ti o fojuhan, nitorinaa rii daju lati ṣafikun .img-fluid
kilasi naa si rẹ <img>
lati jẹ ki o ṣe idahun.
<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>
Iṣatunṣe akọle eeya naa rọrun pẹlu awọn ohun elo ọrọ wa .
<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>