css - Bootstrap 3 : How do you align column content to bottom of row

标签 css twitter-bootstrap twitter-bootstrap-3

我在 Bootstrap 3 中有一行,该行有 3 列。我想将其中两列对齐到行的底部,并将第一列保持在顶部。当我使用传统方法在父级中使用相对位置并在两列中使用绝对位置时,我会得到一种奇怪的行为,我想这是因为 twitter Bootstrap 中的某些东西。这是正在发生的事情的一个缩影:

http://www.bootply.com/125735

绝对迫使所有列相互重叠,有人可以帮我吗?最终结果是这样的:

http://fahadalee.wordpress.com/2013/12/31/bootstrap-3-help-how-to-alin-div-in-bottom/

谢谢

最佳答案

您可以在要底部对齐的 2 列上使用 display: table-cell 和 vertical-align: bottom,如下所示:

.bottom-column
{
    float: none;
    display: table-cell;
    vertical-align: bottom;
}

工作示例 here .

此外,这可能是一个可能的 duplicate question .

关于css - Bootstrap 3 : How do you align column content to bottom of row,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22724952/

相关文章:

javascript - 如何制作圆 Angular 图像或圆形图像

javascript - 使用单选按钮隐藏/显示 div

jquery - 如何在 Bootstrap 中垂直对齐的同一列上拉和推两个 div

css - Bootstrap with custom css 如何垂直对齐文本?

html - Bootstrap + 带有扩展预览的缩略图网格

jquery - 向 Bootstrap 模态显示添加选项

html - CSS在li元素中选择没有类的div

html - col-*-push et col-*-pull 不工作

html - 在电子邮件中使用 CSS 圆圈

html - Bootstrap 3 - 显示所有屏幕尺寸的折叠导航