在嵌入视频上停用YouTube徽标 [英] Disable YouTube logo on embeded video

查看:139
本文介绍了在嵌入视频上停用YouTube徽标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过iframe嵌入了youtube视频,但& modestbranding = 1在& controls设置为0时无效。

 < iframe style =display:block; margin:auto; width =560height =315src =https://www.youtube.com/embed/9dUdfY7op6M?modestbranding=1&controls=0&color=white&showinfo=0&disablekb=1&rel=0& ; autohide = 1frameborder =0allowfullscreen>< / iframe> 

我试过指定display:none;到.ytp-watermark类,我试图找到类与JS然后x [0] .style.display =无,但他们都没有工作。



是否有任何其他方式可以移除徽标?

解决方案

如果您使用 showinfo = 0 从内嵌的



视频的顶部删除标题,则可以使用 modestbranding = 1 将不起作用,并且徽标将出现。

 < iframe style =display:block; margin:auto; width =560height =315src =https://www.youtube.com/embed/9dUdfY7op6Mmodestbranding = 1 frameborder =0allowfullscreen>< / iframe>  


I embeded a youtube video via iframe but &modestbranding=1 does not work if &controls is set to 0.

<iframe style="display: block; margin: auto;" width="560" height="315" src="https://www.youtube.com/embed/9dUdfY7op6M?modestbranding=1&controls=0&color=white&showinfo=0&disablekb=1&rel=0&autohide=1" frameborder="0" allowfullscreen></iframe>

I've tried assigning display: none; to .ytp-watermark class and i've tried to find class with JS and then x[0].style.display="none", but neither of them worked.

Is there any other way I can remove the logo?

解决方案

If you are using showinfo=0 to remove the title from the top of the embedded

video, modestbranding=1 will not work, and the logo will appear.

<iframe style="display: block; margin: auto;" width="560" height="315" src="https://www.youtube.com/embed/9dUdfY7op6M" modestbranding=1 frameborder="0" allowfullscreen></iframe>

这篇关于在嵌入视频上停用YouTube徽标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆