0
我在背景下添加了youtube視頻但仍未全屏顯示。如何在全屏背景下顯示youtube視頻
在左側和右側我仍然變黑色背景。
這裏是我的代碼:
<section class="banner-video">
<div class="banner-video-inner">
<iframe height="100%" width="100%" src="https://www.youtube.com/embed/<?php the_field('banner_video_link');?>?autoplay=1" frameborder="0" allowfullscreen></iframe>
</div>
</section>
.banner-video{position: relative; z-index: 0; width:100%; height:650px;}
.banner-video-inner{ position: absolute;top: 0;left: 0;width: 100%;height: 100%;pointer-events: none; z-index: 2;}
我用the_field利用先進的自定義字段插件。
所以任何人都可以告訴我如何全屏顯示視頻,並刪除左側和右側的黑色背景?
那我的代碼?你可以請給我的代碼相關的答案。謝謝 – Manish