在同等高度列按钮对准底部按钮、高度

2023-09-11 07:51:47 作者:别碰我的人

我使用的是相同的高度栏布局,现​​在我需要放置一个按钮,必须在每一列的底部始终是对齐的。

I'm using an equal height column layout and now I need to place a button that must be always aligned at the bottom of each column.

任何想法?

演示: http://fiddle.jshell.net/JucVm/

推荐答案

我改变了这种样式类:

您可以去除背景,我心中已经加入只是为了测试!

you can remove the background, i'v added it just for testing!

 .content {
        margin-bottom:30px;
        position: relative;
        background: #bb0000;
        height: 100%;
    }

和补充这一类的:

.content div.btn-align-bottom{
    position: absolute;
    bottom: 50px;
    left: 0px;
    width: 100%;
}

演示: http://jsfiddle.net/VTV6B/

更新:我删除你的Javascript和简单的东西,来看看的CSS太,在这里取而代之的是演示:的 http://jsfiddle.net/VTV6B/2/

UPDATE: i removed your Javascript and replaced it with something simpler, take a look at the css too, here is the Demo: http://jsfiddle.net/VTV6B/2/