in English

Hoʻokomo

E hana i nā wikiō pane a i ʻole nā ​​kiʻi kiʻiʻoniʻoni e pili ana i ka laulā o ka makua ma o ka hana ʻana i kahi ratio intrinsic e kau ana ma luna o kekahi mea.

E pili ana

Hoʻopili pololei ʻia nā lula i <iframe>, <embed>, <video>, a me <object>nā mea; E hoʻohana i kahi papa mamo .embed-responsive-itemi makemake ʻia inā makemake ʻoe e hoʻohālikelike i ke ʻano no nā ʻano ʻē aʻe.

Manaʻo kōkua! ʻAʻole pono ʻoe e hoʻokomo frameborder="0"i kāu <iframe>s no ka mea e hoʻopau mākou i kēlā no ʻoe.

Laʻana

E kāʻei i kekahi mea hoʻopili e like me ka mea <iframe>i loko o kahi mea makua .embed-responsiveme kahi lākiō hiʻohiʻona. ʻAʻole .embed-responsive-itemkoi ʻia kēia, akā paipai mākou.

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

Nā lākiō hiʻohiʻona

Hiki ke hoʻopilikino ʻia nā lākiō hiʻohiʻona me nā papa hoʻololi. Ma ka paʻamau, ua hāʻawi ʻia nā papa ratio penei:

<!-- 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 loko o _variables.scss, hiki iā ʻoe ke hoʻololi i nā lākiō hiʻohiʻona āu e makemake ai e hoʻohana. Eia kekahi laʻana o ka $embed-responsive-aspect-ratiospapa inoa:

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