يتضمّن
قم بإنشاء فيديو متجاوب أو تضمين عرض شرائح بناءً على عرض الأصل عن طريق إنشاء نسبة جوهرية تتناسب مع أي جهاز.
يتم تطبيق القواعد مباشرة على <iframe>، <embed>و <video>، <object>والعناصر ؛ استخدم اختياريًا فئة فرعية صريحة .embed-responsive-itemعندما تريد مطابقة نمط السمات الأخرى.
نصيحة محترف! لست بحاجة إلى تضمينها frameborder="0"في حساباتك <iframe>لأننا نتجاوز ذلك نيابةً عنك.
لف أي تضمين مثل <iframe>عنصر أصلي مع .embed-responsiveنسبة عرض إلى ارتفاع. ليس .embed-responsive-itemمطلوبًا بشكل صارم ، لكننا نشجعه.
<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>
يمكن تخصيص نسب الارتفاع مع فئات المعدِّل.
<!-- 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>