我如何将这个引导程序页脚的位置固定在底部,它在iPad视图中位于我的旋转木马容器之后



这是我用来将页脚位置更改为固定的媒体查询,但此媒体查询不起作用。

@media only screen and(max-width: 800px) {
footer {
position: fixed;
bottom: 0;
}
}

这是我的页脚,我正在使用引导页脚。

<footer class="text-muted text-center text-small bg-dark container-fluid navbar navbar-default navbar-static-bottom justify-content-center">
<p>© 2017–2021 iCoder</p>
</footer>

Helloo,

您可以使用";固定底部";类来完成此操作。

<footer
class="
text-muted text-center text-small
bg-dark
container-fluid
navbar navbar-default navbar-static-bottom
justify-content-center
fixed-bottom
"
>
<p>© 2017–2021 iCoder</p>
</footer>

如果这是你想要的,请告诉我。

最新更新