【问题标题】:How to make picture at bottom and centered in Bootstrap 3?如何在 Bootstrap 3 的底部和居中制作图片?
【发布时间】:2014-06-01 10:01:16
【问题描述】:

使用 bootstrap 3 我有一些我试图解决的问题。 我需要图片始终居中在元素内部和元素的底部?

这就是我所拥有的

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

这样我让它始终保持在左角,但是如何让它也位于父元素的中心?

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

解决方案,但没有引导程序

css

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

【问题讨论】:

    标签: css twitter-bootstrap center


    【解决方案1】:

    试试这个

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

    【讨论】:

    • 这个答案会更好地解释为什么这会解决问题。
    猜你喜欢
    • 2014-03-16
    • 2016-05-26
    • 2013-09-03
    • 2014-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-09-08
    • 2015-09-17
    相关资源
    最近更新 更多