Source

Amanani

Amaxwebhu kunye nemizekelo yokubonisa imifanekiso ehambelanayo kunye nokubhaliweyo kunye necandelo lomfanekiso kwi-Bootstrap.

Nanini na xa ufuna ukubonisa isiqwenga somxholo-njengomfanekiso onesihloko esikhethiweyo, cinga ukusebenzisa i <figure>.

Sebenzisa okuqukiweyo .figure, .figure-imgkunye .figure-captionneeklasi ukubonelela ngezitayile ezisisiseko zeHTML5 <figure>kunye <figcaption>nezinto. Imifanekiso kumanani ayinabukhulu obucacileyo, ke qiniseka ukuba wongeza .img-fluidiklasi yakho <img>ukuyenza iphendule.

400x300
Isihloko somfanekiso ongentla.
<figure class="figure">
  <img src=".../400x300" 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>

Ukulungelelanisa i-caption yomfanekiso kulula ngezixhobo zethu zokubhaliweyo .

400x300
Isihloko somfanekiso ongentla.
<figure class="figure">
  <img src=".../400x300" 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>