*
{
margin: 0;
padding: 0;
font-family: sans-serif;
}
header
{
background-image:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url(straat.jpg);
height: 100vh;
background-size: cover;
background-position: center;
}
.hoofd-nav
{
float: right;
list-style: none;
margin-top: 30px;
}
.hoofd-nav li
{
display: inline-block;
}
.hoofd-nav li a
{
color: white;
text-decoration: none;
padding: 5px 20px;
font-family: "Roboto", sans-serif;
font-size: 15px;
border: 3px solid transparent; /* Remove wobble */
}
.hoofd-nav li a.actief
{
border: 3px solid white;
}
.hoofd-nav li a:hover
{
border: 3px solid white;
}
.logo img
{
width: 150px;
height: auto;
filter: brightness(0) invert(1);
float: left;
}
body
{
font-family: monospace;
}
.rij
{
max-width: 1600px;
margin: auto;
}
.voorblad
{
position: absolute;
width: 1200px;
margin-left: 0;
margin-top: 0;
top: 30%;
left: 50%;
-moz-transform: translateX(-50%) translateY(-50%);
-webkit-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
}
h1
{
color: white;
text-transform: uppercase;
font-size: 70px;
text-align: center;
margin-top: 275px;
}
.knop
{
margin-top: 30px;
margin-left: 550px;
}
.knop1
{
border: 3px solid white;
padding: 10px 30px;
color: white;
text-decoration: none;
margin-right: 5px;
font-size: 13px;
text-transform: uppercase;
}
.knop1
{
background-color: darkorange;
font-family: "Roboto", sans-serif;
}
<!DOCTYPE html>
<html>
<head>
<title> Duco's Blog </title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header>
<div class="rij">
<div class="logo">
<img src="leeuw.png">
</div>
<ul class="hoofd-nav">
<li><a href="index.html" class="actief"> Home </a></li>
<li><a href="index2.html"> Voorstellen </a></li>
<li><a href="index3.html"> Hobby's </a></li>
<li><a href="index4.html"> Toekomstdromen </a></li>
</ul>
</div>
<div class="voorblad">
<h1 id="iets"> Start De Reis</h1>
<div class="knop">
<a href="index2.html" class="knop1"> Start </a>
</div>
</div>
</header>
</body>
</html>
所以我要为学校制作一个网站,它必须像一个博客或类似的东西,我认为如果滚动时我有一个可移动的标题,那将是很棒的,现在任何人都可以将我的标题更改为一个可移动的标题吗?
谢谢
我的代码:http://www.mediafire.com/file/64op22c06dc7ei6/Eindopdracht.rar/file 该代码段无法正常运行,因为我无法添加4个html文件
我有4个不同的html文件,只是让标题起作用,如果您单击主题之一,则在其更改框中可能有人对此提出建议?