html 视频横幅
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 视频横幅相关的知识,希望对你有一定的参考价值。
<style>
.parallax-container {
position: relative;
overflow: hidden;
height: 500px;
}
.parallax {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
#video-background {
/* making the video fullscreen */
position: absolute;
min-width: 100%;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -100;
}
.video-navbar {
position: absolute;
bottom: 0;
width: 100%;
background-color: transparent;
z-index: 1;
color: #fff;
background-color: rgba(12, 35, 64, .6);
}
.video-navbar a {
color: #fff;
font-size: 18px;
font-weight: bold;
padding: 1rem 0 1rem 0;
}
</style>
<div class="parallax-container hide-on-med-and-down" style="height: 700px; background-color: ">
<div class="parallax">
<video autoplay loop id="video-background" muted plays-inline>
<source src="https://player.vimeo.com/external/291756412.hd.mp4?s=79257dad149981b79656fba559f0c5fc42c313a5&profile_id=175"
type="video/mp4">
</video>
</div>
<div class="div text">
<p>TMU admissions</p>
</div>
<div class="video-navbar">
<div class="hide-on-med-and-down container">
<div class="flex-row center-items flex-evenly">
<a href="#how-to-apply">How to Apply</a>
<a href="#counselors">Admissions Counselors</a>
<a href="#visit">Visit</a>
<a href="https://www.masters.edu/accepted">Check Status</a>
</div>
</div>
</div>
</div>
以上是关于html 视频横幅的主要内容,如果未能解决你的问题,请参考以下文章
如何在 iframe 中阻止弹出式广告、横幅广告和视频广告?
text 视频横幅
css 视频横幅
scss 设置'视频无横幅'轮播布局样式
应用购买中的“移除广告”应该删除奖励广告以及横幅广告和插页式广告吗?
如何使用 Youtube API 获取 Youtube 频道横幅?