我試圖使一個嵌入的Vimeo
視頻在網頁上看起來更小。目前它響應迅速,並希望保持響應。它現在在網上看起來太大了(對手機大小感到滿意),但它如何使它更小?調整視頻大小並保持其響應
.video_wrapper {
position: relative;
padding-bottom: 56.25%;
}
.video_wrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
<div class="video_wrapper">
<iframe src="https://player.vimeo.com/video/24799548" width="700" height="525" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
這裏是鏈接到我的網頁預先 https://bkwon0402.github.io/item/uxvideo.html
謝謝!
如果你喜歡使用'Bootstrap'.你可以使用'col-md''col-sm'類 –