in English

Embedes

Ruway kutichiq video utaq diapositiva rikuchiy churaykunata tayta mamapa anchunpi ruwasqa huk intrínseco ratio ruwaspa mayqinchus mayqin dispositivopipas escalan.

Sobre

Kamachiykunaqa chiqanmanta <iframe>, <embed>, <video>, <object>elementokunaman ima churakun; munaspaqa huk sut'i miray clase llamk'achiy .embed-responsive-itemmayk'aq huk atributokunapaq estilo tupachiyta munanki.

Pro-Consejo! Mana s frameborder="0"nisqaykipi churanaykichu tiyan chayta qampaq chinkachisqaykumanjina.<iframe>

Qatina

Ima embed hina huk <iframe>tayta elementopi .embed-responsivehinallataq huk aspecto ratio kaqwan p'istuy. The .embed-responsive-itemisn't estrictly required, ichaqa kallpachayku.

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

Ratios de aspecto nisqa

Aspecto ratiokuna modificador clasekunawan ruwasqa kanman. Ñawpaqmanta kay ratio clasekuna qusqa kanku:

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

, ukhupi _variables.scss, llamk'achiyta munasqayki aspecto ratios nisqakunata tikrayta atinki. Kaypi huk rikch'ana $embed-responsive-aspect-ratioslistamanta:

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