Source

Embeds

Creare responsurum video vel slideshow embeds in latitudine parentis creando rationem intrinsecam quae squamas in aliqua fabrica.

De

Regulae directe applicantur ad elementa <iframe>, <embed>, <video>et ; <object>optione utere genere descendentis explicato .embed-responsive-itemcum vis aequare cum aliis attributis.

Pro-Tip! Non opus est tibi includere frameborder="0"sicut <iframe>nos vincimus tibi.

Exemplum

Involve quodlibet fixum tanquam <iframe>in elementum parentis cum .embed-responsiveratione et aspectu. Non .embed-responsive-itemstricte opus est, sed hortamur.

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

Rationes aspectum

Rationes aspectum esse possunt cum classibus modifier nativus. Per defaltam hanc rationem genera praebentur:

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

Intus _variables.scss, rationem mutare vis uti velis. Exemplum est in $embed-responsive-aspect-ratiosindice:

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