Ich habe ein festes Hintergrundvideo und ich habe die Embed-responsive Klasse verwendet, um Reaktionsfähigkeit zu haben. Das Problem ist, dass die feste Position aus dem Video-Container herausfließt. Ich denke zuerst daran, einen Rand oben auf meiner Sektion hinzuzufügen, um meinen Inhalt unter das Video zu schieben, aber es würde nicht auf die Reaktionsfähigkeit wirken. Also drehte ich mich um, ohne eine Idee zu haben, es zu reparieren.feste Position und Antwort in Bootstrap
<div class="container">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" frameborder="0" width="660" height="371" allowfullscreen="" src="https://www.youtube.com/embed/pUjE9H8QlA4?feature=oembed">
</iframe>
</div>
<div class="sectionone">
<div class="row">
<h3>CONTACTS</h3>
<div class="col-sm-12 col-md-4 ">
<h2>Prénom Nom</h2>
<p>HTML is a markup language that is used for creating web pages. The HTML tutorial section will help you understand the basics of HTML, so that you can create your own web pages or website.</p>
<p><a href="http://www.tutorialrepublic.com/html-tutorial/" target="_blank" class="btn btn-success">Learn More »</a></p>
</div>
<div class="col-sm-12 col-md-4 ">
<h2>Prénom Nom</h2>
<p>CSS is used for describing the presentation of web pages. The CSS tutorial section will help you learn the essentials of CSS, so that you can fine control the style and layout of your HTML document.</p>
<p><a href="http://www.tutorialrepublic.com/css-tutorial/" target="_blank" class="btn btn-success">Learn More »</a></p>
</div>
<div class="col-sm-12 col-md-4 ">
<h2>Prénom Nom</h2>
<p>CSS is used for describing the presentation of web pages. The CSS tutorial section will help you learn the essentials of CSS, so that you can fine control the style and layout of your HTML document.</p>
<p><a href="http://www.tutorialrepublic.com/css-tutorial/" target="_blank" class="btn btn-success">Learn More »</a></p>
</div>
</div>
</div>
</div>
Warum verwenden Sie feste Positionierung für etwas, das relative/statische Anzeigeeigenschaften haben soll? Mit anderen Worten, wenn der Iframe den Inhalt nach unten drücken soll, warum würden Sie ihn dann als fest festlegen? –