Source

Ata

Faʻamaumauga ma faʻataʻitaʻiga mo le filifilia o ata i amioga tali (ina ia le sili atu nai lo o latou matua elemene) 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. max-width: 100%;ma height: auto;fa'atatau i le ata ina ia fua ma le elemene matua.

100%x250
<img src="..." class="img-fluid" alt="Responsive image">
Ata SVG ma IE 10

I Internet Explorer 10, ata SVG ma .img-fluide le tutusa le lapopoa. Ina ia faaleleia lenei mea, faʻaopopo width: 100% \9;pe a manaʻomia. O lenei fa'aleleia e le sa'o le lapopoa o isi ata, o lea e le fa'aogaina ai e Bootstrap.

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.

200x200
<img src="..." alt="..." class="img-thumbnail">

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 .

200x200 200x200
<img src="..." class="rounded float-left" alt="...">
<img src="..." class="rounded float-right" alt="...">
200x200
<img src="..." class="rounded mx-auto d-block" alt="...">
200x200
<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>