如何在底部制作图片并以Bootstrap 3为中心?

时间:2014-04-17 08:13:11

标签: css twitter-bootstrap center

使用bootstrap 3我有一些我试图解决的问题。 我需要图片总是在元素的元素和bootom中居中?

这是我的

<div class="col-md-12">
<a class="jumper" style="position:absolute; bottom:0;"><img src="mypicture"></a>
</div>'

这样我就让它始终保持在左下角,但是还要让它在父元素中居中吗?

我尝试过以文本为中心的中心块。但我没有运气?

解决方案,但没有BOOTSTRAP

CSS

position:absolute;
bottom:0px;
left:50%;

1 个答案:

答案 0 :(得分:0)

试试这个

<div class="container" align="center">
    <a class="jumper" style="position:absolute; bottom:0;"><img src="mypicture"></a>
</div