Source

Ibyapa

Kora videwo isubiza cyangwa slideshow ikubiyemo ukurikije ubugari bwababyeyi mugukora igipimo cyimbere gipima igikoresho icyo aricyo cyose.

Ibyerekeye

Amategeko akoreshwa muburyo butaziguye <iframe>,,, nibintu <embed>; guhitamo koresha ibyiciro byabakomokaho mugihe ushaka guhuza styling kubindi biranga.<video><object>.embed-responsive-item

Impanuro! Ntugomba gushyiramo frameborder="0"muri <iframe>s nkuko tubirengaho kubwawe.

Urugero

Kuzuza ikintu icyo ari cyo cyose cyashizwemo nkibintu <iframe>byababyeyi hamwe .embed-responsivenikigereranyo. Ntabwo .embed-responsive-itembisabwa rwose, ariko turabishishikariza.

<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>

Ibipimo byerekana

Ibipimo byerekana bishobora gutegurwa hamwe namasomo yo guhindura. Mubusanzwe ibyiciro bikurikira byatanzwe:

<!-- 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>

Imbere _variables.scss, urashobora guhindura ibipimo ushaka gukoresha. Dore urugero $embed-responsive-aspect-ratiosrwurutonde:

$embed-responsive-aspect-ratios: (
  (21 9),
  (16 9),
  (4 3),
  (1 1)
) !default;