Fa'ase'e ile anotusi autu Fa'ase'e ile su'ega fa'amatalaga
Check

Fa'amaumauga ma fa'ata'ita'iga mo le filifilia o ata i le amio fa'afofoga (ina ia aua ne'i lautele atu nai lo o latou matua) ma fa'aopoopo sitaili mama ia i latou—e ala uma i vasega.

I luga o lenei itulau

Ata tali

O ata i Bootstrap e faʻafeiloaʻi ma .img-fluid. E fa'atatau lea max-width: 100%;ma height: auto;le ata ina ia fua ma le lautele matua.

Placeholder Responsive image
html
<img src="..." class="img-fluid" alt="...">

Ata laititi

I le faaopoopo atu i la matou tuaoi-radius utilities , e mafai ona e faʻaogaina .img-thumbnaile tuʻuina atu ai se ata se foliga lapotopoto 1px tuaoi.

A generic square placeholder image with a white border around it, making it resemble a photograph taken with an old instant camera 200x200
html
<img src="..." class="img-thumbnail" alt="...">

Fa'aoga ata

Fa'aoga ata ma vasega fa'anofo fesoasoani po'o vasega fa'aoga o tusitusiga . block-o ata maualuga e mafai ona fa'atotonugalemu i le fa'aogaina o le fa'aogaina o le .mx-autova'aiga fa'apitoa .

Placeholder 200x200 Placeholder 200x200
html
<img src="..." class="rounded float-start" alt="...">
<img src="..." class="rounded float-end" alt="...">
Placeholder 200x200
html
<img src="..." class="rounded mx-auto d-block" alt="...">
Placeholder 200x200
html
<div class="text-center">
  <img src="..." class="rounded" alt="...">
</div>

Ata

Afai o loʻo e faʻaaogaina le <picture>elemene e faʻamaonia ai le tele o <source>elemene mo se mea patino <img>, ia mautinoa e faʻaopoopo .img-*vasega i le <img>ae le o le <picture>pine.

<picture>
  <source srcset="..." type="image/svg+xml">
  <img src="..." class="img-fluid img-thumbnail" alt="...">
</picture>

Sass

Fuafuaga

O lo'o avanoa suiga mo ata.

$thumbnail-padding:                 .25rem;
$thumbnail-bg:                      $body-bg;
$thumbnail-border-width:            $border-width;
$thumbnail-border-color:            var(--#{$prefix}border-color);
$thumbnail-border-radius:           $border-radius;
$thumbnail-box-shadow:              $box-shadow-sm;