הטמעות
צור הטמעות של וידאו או מצגת שקופיות רספונסיביות בהתבסס על רוחב ההורה על ידי יצירת יחס מהותי שמתרחב בכל מכשיר.
כללים מיושמים ישירות על <iframe>, <embed>, <video>ואלמנטים <object>; .embed-responsive-itemאם ברצונך להתאים את הסגנון עבור מאפיינים אחרים , השתמש באופן אופציונלי במעמד צאצא מפורש .
פרו-טיפ! אינך צריך לכלול frameborder="0"ב- <iframe>s שלך מכיוון שאנו עוקפים זאת עבורך.
עטוף כל הטמעה כמו <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>