Pitani kuzinthu zazikulu Pitani kumayendedwe adocs
in English

Zithunzi

Zolemba ndi zitsanzo zosankha zithunzi kukhala zomvera (kuti zisakhale zokulirapo kuposa kholo lawo) ndikuwonjezera masitayelo opepuka kwa iwo - zonse kudzera m'makalasi.

Zithunzi zomvera

Zithunzi mu Bootstrap zimapangidwa kuti zigwirizane ndi .img-fluid. Izi zikugwira ntchito max-width: 100%;ndi height: auto;chithunzicho kuti chikhale ndi m'lifupi mwa kholo.

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

Tizithunzi tazithunzi

Kuphatikiza pazida zathu zam'malire , mutha kugwiritsa ntchito .img-thumbnailkuti chithunzichi chiwoneke mozungulira 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="...">

Kuyanjanitsa zithunzi

Align images with the helper float classes or text alignment classes. block-level images can be centered using the .mx-auto margin utility class.

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

Picture

If you are using the <picture> element to specify multiple <source> elements for a specific <img>, make sure to add the .img-* classes to the <img> and not to the <picture> tag.

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

Sass

Variables

Variables are available for image thumbnails.

$thumbnail-padding:                 .25rem;
$thumbnail-bg:                      $body-bg;
$thumbnail-border-width:            $border-width;
$thumbnail-border-color:            $gray-300;
$thumbnail-border-radius:           $border-radius;
$thumbnail-box-shadow:              $box-shadow-sm;