Ata
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.
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.
<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-thumbnail
e tuʻuina atu ai se ata se foliga lapotopoto 1px tuaoi.
<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-auto
va'aiga fa'apitoa .
<img src="..." class="rounded float-start" alt="...">
<img src="..." class="rounded float-end" alt="...">
<img src="..." class="rounded mx-auto d-block" alt="...">
<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;