我可以帮忙翻译,内容与IT技术有关。以下是您需要翻译的内容:
但现在在更大的屏幕上,我的视频两侧有非常大的黑色边框,并且它完全不具有响应性。
我正在构建一个带有来自YouTube的视频横幅的网站,但我不知道如何实现。
目前我有以下内容:
#video-background {
position: absolute;
right: 0;
top:135px;
left:0;
bottom: 0;
width:100% !important;
width: auto;
height:50vh;
min-height: 550px;
z-index: 99;
}
<div id="video-background">
<iframe frameborder="0" height="100%" width="100%"
src="https://www.youtube.com/embed/.....">
</iframe>
</div>
但现在在更大的屏幕上,我的视频两侧有非常大的黑色边框,并且它完全不具有响应性。
#video-background
是否会阻止元素扩展超过50vh
? - Maneesh