gpt4 book ai didi

html - 需要在我的顶部包装器上添加视频,请教我如何设置 css 样式

转载 作者:行者123 更新时间:2023-11-28 00:12:07 25 4
gpt4 key购买 nike

因为我之前尝试在我的顶部包装器上添加视频。(非常感谢那些给我留言的人。)但是,我仍然无法解决问题。

好吧,我可以上传视频,但仍然无法正确设置样式。在我上传了一个类似 top-wrapper 的视频后,我很难去设计风格....

请教我如何编写 css 以便我可以将视频放入我的顶层包装器,,,

body {
margin: 0;
font-family: "Hiragino Kaku Gothic ProN";
}

a {
text-decoration: none;
}

.container {
max-width: 1170px;
width: 110%;
padding: 0 15px;
margin: 0 auto;
}

.top-wrapper {
padding: 100px 0 50px 0;
text-align: center;
background:rgba(255,0,0,0.1);
}

.top-wrapper h1 {
font-size: 75px;
letter-spacing: 5px;
padding-top: 5px;
color: white;
text-align: center;
}

.top-wrapper p {
font-size: 25px;
color: white;
text-align: center;
}

header {
height: 65px;
width: 100%;
background-color: rgba(34, 49, 52, 0.9);
top: 0;
position: fixed;
z-index: 10;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TakashiKaida</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="responsive.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css">
</head>
<body>
<header>
<div class="container">
<div class="header-left">
</div>
<div class="header-right">
<a href="file:///Users/takashikaida/Documents/Takashi%20Kaida%20Personal/index.html">Home</a>
<a href="#" class="about">About</a>
<a href="#" class="blog">Blog</a>
<a href="#" class="cv">CV</a>
</div>
</div>
</header>
<div class="top-wrapper">
<div class="video" src="video3344.mov" autoplay loop muted type="video/mp4"></video>
<div class="container">
<h1>HELLO, IT'S ME.</h1>
<h1>I AM TAKASHI</h1>
<p><br><br>Marketing Analyst/Assistant</p>
<p>Co-Founder and CEO of <a href="file:///Users/takashikaida/Desktop/Flow%20Full%20Screen%20Type/index.html" target="_blank"> <strong>FLOW</strong></a></p>
</div>
</div>
</div>

最佳答案

关于html - 需要在我的顶部包装器上添加视频,请教我如何设置 css 样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55330213/

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