在同等高度列按钮对准底部 [英] Button aligned bottom on equal height columns
本文介绍了在同等高度列按钮对准底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是相同的高度栏布局,现在我需要放置一个按钮,必须在每一列的底部始终是对齐的。
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/
这篇关于在同等高度列按钮对准底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文