我有疑问。我怎样才能将“zelf toevoegen”和“tijdlijn zelf”向下移动,使其与标题底部对齐?我尝试了一切,但似乎没有任何办法可以解决它。
(显然我需要更多文字来发布此内容,因此请忽略此)
<head>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 1;
overflow: hidden;
background-color: #000000;
}
li {
float: left;
}
li a {
display: block;
color: rgb(255, 153, 0);
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 150%;
}
li a:hover:not(.active) {
background-color: #000000;
}
.active {
background-color: #000000;
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="#home">
<img src="VERAbrandend.gif" alt="Vera logo" width="45px" height="40px" border-radius="75px">
</a></li>
<li><a href="#news">tijdlijn zelf</a></li>
<li><a href="#contact">zelf toevoegen</a></li>
</ul>
</body>
*, *::after, *::before {
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-size: 1em;
font-family: "Ubuntu", sans-serif;
color: #fff;
background-color: #000000;
}
a {
color: #ffffff;
text-decoration: none;
}
一切,位置,填充,底部:..%。等等
这可能被认为是一个重复的问题,所以把它记下来,这样你就不会受到太多批评。抛开这些建议不谈,下面是如何将文本放在 div 底部的方法: 如何将div的内容对齐到底部
以下是如何在堆栈上提问 https://stackoverflow.com/help/how-to-ask