Source

Embed a ni

Device eng pawha scale thei intrinsic ratio siamin parent zau zawng a zirin responsive video emaw slideshow embed siam rawh.

Lam

<iframe>Rules chu , <embed>, <video>, leh <object>element -ah te direct-in hman a ni a ; .embed-responsive-itemoptional chuan attribute dangte tana styling inmil duh hunah explicit descendant class hmang ang che.

Pro-Tip a ni! Chu chu kan override che avangin frameborder="0"i s ah hian i telh a ngai lo .<iframe>

Entirna

Embed eng pawh <iframe>in parent element ang chi .embed-responsiveleh aspect ratio neiin wrap rawh. The .embed-responsive-itemisn't strictly required, mahse kan fuih a ni.

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

Aspect ratio te pawh a awm

Aspect ratio te hi modifier class hmangin a duh angin a siam thei bawk. Default-ah chuan a hnuaia ratio class te hi pek a ni:

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

, chhungah _variables.scsschuan aspect ratio i hman duh te chu i thlak thei ang. Hetah hian list entir nan kan rawn tarlang e $embed-responsive-aspect-ratios:

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