in English

Zoyika

Pangani omvera kanema kapena zithunzi zojambulidwa kutengera m'lifupi mwa kholo popanga chiŵerengero chachibadwa chomwe chimafika pachida chilichonse.

Za

Malamulo akugwiritsidwa ntchito mwachindunji ku <iframe>, <embed>, <video>, ndi <object>zinthu; mwasankha gwiritsani ntchito gulu la mbadwa .embed-responsive-itempamene mukufuna kufanana ndi masitayelo a zina.

Pro-Tip! Simufunikanso kuphatikizira frameborder="0"m'mabuku anu <iframe>momwe timakuchotserani.

Chitsanzo

Manga choyika chilichonse ngati chinthu <iframe>cha makolo ndi .embed-responsivechiŵerengero. Sikofunikira .embed-responsive-itemkwenikweni, koma timalimbikitsa.

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

Magawo osiyanasiyana

Magawo amagawo amatha kusinthidwa ndi makalasi osintha. Mwachikhazikitso makalasi otsatirawa amaperekedwa:

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

Mkati mwake _variables.scss, mutha kusintha magawo omwe mukufuna kugwiritsa ntchito. Nachi chitsanzo cha $embed-responsive-aspect-ratiosmndandanda:

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