in English

Goýmak

Islendik enjamda terezini düzýän içerki gatnaşygy döredip, ene-atanyň giňligine esaslanýan täsirli wideo ýa-da slaýdşow şekillerini dörediň.

Takmynan

<iframe>Düzgünler ,, we elementlere gönüden <embed>- göni ulanylýar ; islege görä , beýleki atributlar üçin stil bilen deňeşdirjek bolanyňyzda aç-açan nesil synpyny ulanyň .<video><object>.embed-responsive-item

Maslahat! Siziň üçin muny girizmek hökman däl, sebäbi bu frameborder="0"siziň <iframe>üçin ýok.

Mysal

<iframe>Ene-atanyň elementi ýaly aspekti we aspekt gatnaşygy bilen örtüň .embed-responsive. Bu .embed-responsive-itemdüýbünden talap edilmeýär, ýöne biz muny höweslendirýäris.

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

Aspekt gatnaşygy

Aspekt derejelerini üýtgediji synplar bilen düzüp bolýar. Adaty tertipde aşakdaky gatnaşygy synplary berilýär:

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

Içinde _variables.scss, ulanmak isleýän taraplaryňyzy üýtgedip bilersiňiz. $embed-responsive-aspect-ratiosSanawyň mysaly :

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