చిత్రాలు
ప్రతిస్పందించే ప్రవర్తనలో చిత్రాలను ఎంచుకోవడానికి డాక్యుమెంటేషన్ మరియు ఉదాహరణలు (కాబట్టి అవి వారి తల్లిదండ్రుల కంటే విశాలంగా మారవు) మరియు వాటికి తేలికైన శైలులను జోడించండి-అన్నీ తరగతుల ద్వారా.
ప్రతిస్పందించే చిత్రాలు
బూట్స్ట్రాప్లోని చిత్రాలు ప్రతిస్పందించేలా తయారు చేయబడ్డాయి .img-fluid. ఇది పేరెంట్ వెడల్పుతో స్కేల్ అయ్యేలా ఇమేజ్కి max-width: 100%;వర్తిస్తుంది .height: auto;
<img src="..." class="img-fluid" alt="...">
చిత్ర సూక్ష్మచిత్రాలు
మా బోర్డర్-రేడియస్ యుటిలిటీస్తో పాటు , మీరు .img-thumbnailఇమేజ్కి గుండ్రని 1px అంచు రూపాన్ని అందించడానికి ఉపయోగించవచ్చు.
<img src="..." class="img-thumbnail" alt="...">
చిత్రాలను సమలేఖనం చేస్తోంది
Align images with the helper float classes or text alignment classes. block-level images can be centered using the .mx-auto margin utility class.
<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>
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;