Html 将物品放置在流体容器底部
我的html/css有问题。我想在我的三个部分中的每一部分都有一个“了解更多”框,位于每一部分的中间底部 CSS 在顶箱中似乎工作正常:Html 将物品放置在流体容器底部,html,css,Html,Css,我的html/css有问题。我想在我的三个部分中的每一部分都有一个“了解更多”框,位于每一部分的中间底部 CSS 在顶箱中似乎工作正常: 但是,在下面的部分中,我使用了几乎相同的代码: <section id='a1' style="height:100%;background-color:white;"> <div class="container"></div> <div id="learn"><a href=
但是,在下面的部分中,我使用了几乎相同的代码:
<section id='a1' style="height:100%;background-color:white;">
<div class="container"></div>
<div id="learn"><a href="#">Learn More</a>
</section>
但是,这次“了解更多”框不会出现。我做错了什么?我玩过position:relative
,运气不好
TLDR:“了解更多”框应位于标题和部分的底部中间,它仅显示在标题中
另外,我试图删除我的代码和css,但不想再删除了,因为我相信它会突出显示哪些选项会/不会起作用。将此添加到您的css中:
section {
position: relative;
}
演示:将此添加到CSS中:
section {
position: relative;
}
演示:将此添加到CSS中:
section {
position: relative;
}
演示:将此添加到CSS中:
section {
position: relative;
}
演示: