【发布时间】:2019-06-10 20:53:30
【问题描述】:
我正在尝试使用 Youtube 视频制作视频标题。我是 无法隐藏右下角的 Youtube 标志,手表 稍后分享链接在右上角,视频标题在顶部 左角。我成功地让它自动播放和循环。我也有 视频上的文字。有什么建议?
Here is my current code:
<!-- HTML -->
<div class="embed-responsive embed-responsive-16by9" id="holder">
<iframe class="frame" width="560" height="315"
src="https://www.youtube.com/embed/4hIZUCKsio0?rel=0&
controls=0&showinfo=0;autoplay=1&mute=1&loop=1&playlist=4hIZUCKsio
0" frameborder="0" allow="accelerometer; encrypted-media; gyroscope;
picture-
in-picture" allowfullscreen></iframe>
<div class="bar">
<div class="container">
<div class="row justify-content-start">
<div class="col-sm-8">
<h1>Hey there! My name is John.<br>
I'm a Web Developer.</h1>
<h4>My hobbies include HTML5, CSS3, Javascript, jQuery, and Bootstrap 4.
</h4>
</div>
</div>
</div>
</div>
</div>
<!-- CSS -->
.bar{
position:absolute;
top:0;
left:0;
width:100%;
height:80px;
margin-top: 200px;
margin-left: 150px;
}
【问题讨论】:
-
请澄清edit你的问题:你想嵌入YouTube视频,但隐藏一些元素(如
YouTube logo,share link button)基本上嵌入视频中的所有控件? -
是的,使用 Youtube 在嵌入下提供的代码嵌入 youtube 视频。但隐藏所有元素(包括 Youtube 标志、分享链接等)。我唯一想展示的是视频本身。谢谢!
标签: video iframe youtube header embed