anordnen Ich möchte 100% Breite und proportionale Höhe für den Youtube Link verwenden.Wie proportionale Höhe von Youtube Iframe
Aber es scheint, als würde die Höhe einen falschen Wert bekommen.
Bitte helfen
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<div data-role="tabs" id="tabs">
<div data-role="navbar">
<ul>
<li><a href="#one" class="ui-btn-active" data-ajax="false">Film</a></li>
<li><a href="#two" data-ajax="false">Trailer</a></li>
</ul>
</div>
<div id="one">
<br />
</div>
<div id="two">
<br />
<iframe style="width:100%; border: none"
src="https://www.youtube.com/embed/sR_G6XXZaNI"></iframe>
</div>
</div>
Mögliche Duplikat [Pflegen Sie das Seitenverhältnis eines div mit CSS] (http://stackoverflow.com/questions/1495407/maintain-the- Seitenverhältnis-von-einem-Div-mit-CSS – JoschuaSchneider