in English

Whakaahua

Ko nga tuhinga me nga tauira mo te kowhiri i nga whakaahua ki te whanonga aro (kia kore rawa e nui ake i o raatau matua) me te taapiri i nga momo maamaa ki a raatau-ma nga karaehe katoa.

Ko nga whakaahua whakautu

Ko nga whakaahua kei Bootstrap he mea whakautu ki te .img-fluid. max-width: 100%;ka height: auto;hoatu ki te ahua kia tauine ki te huānga matua.

Placeholder Responsive image
<img src="..." class="img-fluid" alt="...">
Whakaahua SVG me Internet Explorer

I roto i te Internet Explorer 10 me 11, ko nga whakaahua SVG me nga whakaahua .img-fluidhe rereke te rahi. Hei whakatika i tenei, taapiri , ki nga waahi width: 100%;ranei .w-100e tika ana. Ko tenei whakatikanga ka kore e tika te rahi o etahi atu ahua ahua, na reira kaore a Bootstrap e whakamahi aunoa.

Karakōnui whakaahua

I tua atu i o maatau taputapu-raupapa-taitapa , ka taea e koe te whakamahi .img-thumbnailki te hoatu ki tetahi ahua he ahua porotaka taitapa 1px.

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

Tirohanga whakaahua

Tiarohia nga whakaahua ki nga karaehe rewa kaiawhina, ki nga karaehe whakatika tuhinga ranei . block-Ka taea te whakatekau i nga whakaahua ma te whakamahi i te .mx-autokaraehe whaipainga tawhē .

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

Pikitia

Mēnā kei te whakamahi koe i te <picture>huānga ki te whakapūtā <source>huānga maha mō te tauwhāiti <img>, kia mahara ki te taapiri i nga .img-*karaehe ki te <img>me kaua ki te <picture>tohu.

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