gpt4 book ai didi

html - 在此全屏视频下制作文字

转载 作者:行者123 更新时间:2023-11-28 01:32:46 24 4
gpt4 key购买 nike

有人可以帮助我吗?我正在为学校制作一个元素,我有一个很酷的想法,将这个全屏视频制作成一种主页/欢迎页面,当他们向下滚动时,他们会看到正常的文本和其他内容。

谢谢

    #myVideo {
position: fixed;

min-width: 100%;
min-height: 100%;
}

.content {

text-align: center;
font-size: 500%;

width: 100%;
padding: 20px;
color: #FFF;
font-family: 'ds';
mix-blend-mode: difference;
filter: drop-shadow(.05em .05em orange);
}
   
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>



<div><video autoplay muted loop id="myVideo">
<source src="xxx.mp4" type="video/mp4">
</video>
<div class="content">
<p>$WHY ISNT THIS WORKING$</p><br>
<p>$CZP$</p>
</div></div>
<h1>This text needs to be under the video</h1>

最佳答案

这是您要找的吗?

#myVideo {
width: 100vw;
height: 100vh;
}

.video-container {
min-width: 100vw;
min-height: 100vh;
background-color: green;

}

.content {
background-color: yellow;
text-align: center;
font-size: 500%;
width: 100%;
padding: 20px;
color: #FFF;
font-family: 'ds';
mix-blend-mode: difference;
filter: drop-shadow(.05em .05em orange);
}
<div class="video-container">
<video autoplay muted loop id="myVideo">
<source src="xxx.mp4" type="video/mp4">
</video>
</div>
<div class="content">
<p>$WHY ISNT THIS WORKING$</p><br>
<p>$CZP$</p>
<h1>This text needs to be under the video</h1>
</div>

关于html - 在此全屏视频下制作文字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50865374/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com