Responsive iframe for different aspect ratio
问题 I followed this post Making an iframe responsive to make iframes responsive. # A test case <div class="intrinsic-container"> <iframe frameborder="0" width="640" height="498" src="https://v.qq.com/iframe/player.html?vid=y0379t92gl9&tiny=0&auto=0" allowfullscreen></iframe> </div> # style.css .intrinsic-container { position: relative; /* padding-bottom: 56.25%; /* 16:9 */ padding-bottom:75%; /* 4:3 */ /* padding-bottom: 66.66%; /* 3:2 */ /* padding-top: 25px; */ height: 0; } .intrinsic-container