我需要youtube视频作为我的网页背景。这是我的密码
<section class="about-section">
<div class="video-background">
<div class="video-foreground">
<iframe src="https://www.youtube.com/embed/UY9V5S9MEgk?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&playlist=W0LHTWG-UmQ" frameborder="0" allowfullscreen></iframe>
</div> </div> </section>这很好用。我的问题是,我需要使用以下youtube视频作为我的背景,但它是行不通的。我试过这两个URL,但不起作用
这是URL的我试过了
发布于 2017-04-29 05:21:36
复制youtube视频的嵌入代码,并将其替换为当前的
<iframe width="854" height="480" src="https://www.youtube.com/embed/UY9V5S9MEgk?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&playlist=W0LHTWG-UmQ" frameborder="0" allowfullscreen></iframe>发布于 2017-04-29 05:23:24
试试这个:
<div style="position: fixed; z-index: -99; width: 100%; height: 100%">
<iframe frameborder="0" height="100%" width="100%"
src="https://youtube.com/embed/UY9V5S9MEgk?autoplay=1&controls=0&showinfo=0&autohide=1">
</iframe>
</div>发布于 2017-04-29 05:18:35
这个问题已经解决了,点击这里
如果您有任何疑问,请留言给我。
[1]: https://codepen.io/dudleystorey/pen/PZyMrd然后点击这里
[1]: https://www.labnol.org/internet/youtube-video-background/27933/https://stackoverflow.com/questions/43691980
复制相似问题