Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 将物品放置在流体容器底部_Html_Css - Fatal编程技术网

Html 将物品放置在流体容器底部

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=

我的html/css有问题。我想在我的三个部分中的每一部分都有一个“了解更多”框,位于每一部分的中间底部

CSS

在顶箱中似乎工作正常:

但是,在下面的部分中,我使用了几乎相同的代码:

<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;
}
演示: