Source

Lipalo

Litokomane le mehlala ea ho hlahisa litšoantšo le mongolo o amanang le karolo ea setšoantšo ho Bootstrap.

Nako le nako ha u hloka ho hlahisa karolo ea litaba-joaloka setšoantšo se nang le mantsoe a boikhethelo, nahana ka ho sebelisa <figure>.

Sebelisa tse kenyellelitsoeng .figure, .figure-imgle .figure-captionlitlelase ho fana ka mefuta e meng ea mantlha ea HTML5 <figure>le <figcaption>likarolo. Litšoantšo ka lipalo ha li na boholo bo hlakileng, kahoo etsa bonnete ba hore u kenya .img-fluidsehlopha ho ea hau <img>ho etsa hore e arabele.

400x300
Tlhaloso ea setšoantšo se ka holimo.
<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>

Ho lekanya mongolo ho bonolo le lisebelisoa tsa rona tsa mongolo .

400x300
Tlhaloso ea setšoantšo se ka holimo.
<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>