Ebiyingizibwamu
Tonda vidiyo oba slideshow embeds eziddamu okusinziira ku bugazi bw’omuzadde ng’okola omugerageranyo ogw’omunda ogugerageranya ku kyuma kyonna.
Ku
Amateeka gakozesebwa butereevu ku <iframe>
, <embed>
, <video>
, ne <object>
elementi; okusalawo kozesa ekibiina ky'abazzukulu eky'olwatu .embed-responsive-item
ng'oyagala okukwataganya sitayiro y'ebintu ebirala.
Pro-Amagezi! Teweetaaga kussaamu frameborder="0"
mu <iframe>
s yo nga bwe tukusukkulumya ekyo ku lulwo.
Eky'okulabirako
Zinga embed yonna nga <iframe>
mu elementi omuzadde ne .embed-responsive
ne aspect ratio. The .embed-responsive-item
isn't strictly required, naye tugikubiriza.
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/zpOULjyy-n8?rel=0" allowfullscreen></iframe>
</div>
Emigerageranyo gy’ebifaananyi (Aspect ratios).
Aspect ratios zisobola okulongoosebwa ne modifier classes. Nga bwekiba nti ebika by’omugerageranyo bino wammanga biweebwa:
<!-- 21:9 aspect ratio -->
<div class="embed-responsive embed-responsive-21by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 16:9 aspect ratio -->
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 4:3 aspect ratio -->
<div class="embed-responsive embed-responsive-4by3">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
<!-- 1:1 aspect ratio -->
<div class="embed-responsive embed-responsive-1by1">
<iframe class="embed-responsive-item" src="..."></iframe>
</div>
Mu _variables.scss
, osobola okukyusa aspect ratios z’oyagala okukozesa. Wano waliwo ekyokulabirako $embed-responsive-aspect-ratios
ky'olukalala:
$embed-responsive-aspect-ratios: (
(21 9),
(16 9),
(4 3),
(1 1)
) !default;