Source

Di-embed

Hlama di-embed tša bidio tše di arabelago goba tša pontšho ya diselaete tšeo di theilwego godimo ga bophara bja motswadi ka go hlama tekanyo ya ka gare yeo e lekanyetšago sedirišwa sefe goba sefe.

Mabapi le

Melawana e dirišwa thwii go <iframe>, <embed>, <video>, le <object>dielemente; ka boikgethelo šomiša sehlopha sa setlogolo se se lego pepeneneng .embed-responsive-itemge o nyaka go swana le setaele sa dika tše dingwe.

Pro-Keletšo! Ga go nyakege gore o akaretše frameborder="0"ka go s ya gago <iframe>ka ge re go fediša seo.

Mohlala

Phuthelela go tsenya efe goba efe go swana le <iframe>ka gare ga elemente ya motswadi ka .embed-responsivele tekanyo ya mahlakore. The .embed-responsive-itemga e nyakege ka go tia, eupša re e kgothaletša.

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

Ditekanyo tša dikarolo

Ditekanyo tša dikarolo di ka rulaganywa ka dihlopha tša sefetoši. Ka go ikemela diklase tše di latelago tša tekanyo di a fiwa:

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

Ka gare ga _variables.scss, o ka fetoša ditekanyo tša dikarolo tšeo o nyakago go di diriša. Mohlala wa $embed-responsive-aspect-ratioslenaneo ke wo:

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