我试过这段代码将这个页脚对齐在导航栏的底部。如何在底部得到它,它应该是响应式的
<div class="sidebar" data-color="green">
<div class="sidebar-wrapper">
<ul class="nav">
/*menu code*/
</ul>
<footer class="footer pull-bottom">
/*code*/
</footer>
</div>
<div class="sidebar-background" style="background-image: url(img.png)"></div>
</div>
最佳答案
这应该将页脚放在底部。
.footer {
position: absolute;
bottom: 0;
}
关于html - 如何使用响应将此页脚与导航菜单内的底部对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45349456/