Source

Sawirada

Dukumeenti iyo tusaalooyin lagu dooranayo sawirada habdhaqan ka jawaab celin ah (si ayan waligood uga weynaan xubnaha waalidkooda) oo ku dara qaabab khafiif ah iyaga-dhammaan fasalada.

Sawirro jawaab celin ah

Sawirada ku jira Bootstrap waxaa lagu sameeyay jawaab celin leh .img-fluid. max-width: 100%;waxaana height: auto;lagu dabaqaa sawirka si uu ugu miisaamo xubinta waalidka.

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

Gudaha Internet Explorer 10, sawirada SVG ee wata .img-fluidayaa si aan qiyaas lahayn loo cabbiray. Si tan loo hagaajiyo, ku dar width: 100% \9;meelaha lagama maarmaanka ah. Tani waxay hagaajinaysaa si aan munaasib ahayn oo u cabbiraysa qaababka sawirka kale, markaa Bootstrap si toos ah uma dabaqdo.

Sawir gacmeed

Marka lagu daro adeegyadayada-radius-ka , waxaad isticmaali kartaa .img-thumbnailinaad siiso sawir muuqaal xuduudeed oo 1px ah.

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

Isku toosinta sawirada

Ku toosi sawirada cawiyaha fasalada sabaynta ama fasalada toosinta qoraalka . blockSawirada heerka waxa ay noqon karaan kuwo udub dhexaad u ah iyadoo la isticmaalayo fasalka .mx-autoutility margin .

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>

Sawir

Haddii aad u isticmaalayso <picture>curiyaha si aad u qeexdo <source>curiyayaasha kala duwan ee gaar ah <img>, hubi inaad ku darto .img-*fasallada ee <img>ha ku darin <picture>summada.

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