html - 如何使用响应将此页脚与导航菜单内的底部对齐

标签 html css twitter-bootstrap

我试过这段代码将这个页脚对齐在导航栏的底部。如何在底部得到它,它应该是响应式的

<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>

enter image description here

最佳答案

这应该将页脚放在底部。

.footer {
    position: absolute;
    bottom: 0;
}

关于html - 如何使用响应将此页脚与导航菜单内的底部对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45349456/

相关文章:

html - HTML 页面上的 3D 模型

CSS 菜单在 IE 中的 siFR 标题中断

html - div 之间的注释 block 用于定位

twitter-bootstrap - 制作 Bootstrap 静态导航栏覆盖内容,如固定导航栏

jquery - 双击打开 Bootstrap 模式

javascript - 如何在div中制作可拖动的图像?

javascript - Safari 中可编辑内容 div 的 Column-Count Css 错误

javascript - onmousedown 事件不是连续事件吗?

html - Twitter Bootstrap ProgressBar 左右两侧带有徽章

javascript - 如何保存与其字段标签关联的输入?