in English
Ziwerengero
Zolemba ndi zitsanzo zowonetsera zithunzi ndi zolemba zogwirizana ndi gawo lachithunzi mu Bootstrap.
Patsamba ili
Nthawi iliyonse mukafuna kuwonetsa zina - monga chithunzi chokhala ndi mawu ofotokozera, lingalirani kugwiritsa ntchito <figure>
.
Gwiritsani ntchito zophatikizidwa .figure
, .figure-img
ndi .figure-caption
makalasi kuti mupereke masitayelo oyambira a HTML5 <figure>
ndi <figcaption>
zinthu. Zithunzi muzithunzi zilibe kukula, choncho onetsetsani kuti mwawonjezera .img-fluid
kalasi yanu <img>
kuti ikhale yomvera.
<figure class="figure">
<img src="..." class="figure-img img-fluid rounded" alt="...">
<figcaption class="figure-caption">A caption for the above image.</figcaption>
</figure>
Kuyanjanitsa mawu omasulira ndikosavuta ndi zolemba zathu .
<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>
Sass
Zosintha
$figure-caption-font-size: $small-font-size;
$figure-caption-color: $gray-600;