Centering a Column Using Bootstrap

This question already has an answer here:

  • Center a column using Twitter Bootstrap 3 28 answers

  • 尝试添加class="text-center"到div col元素:

    <div class="col-xs-12 text-center" id="buttonList">
    

    尝试使用样式“margin:0 auto;”


    You can try:

    margin-left:auto; margin-right:auto margin-left:auto; margin-right:auto for horizontal alignment;

    margin-top:auto; margin-bottom:auto margin-top:auto; margin-bottom:auto , for vertical alignment

    or

    margin:auto for both.

    链接地址: http://www.djcxy.com/p/75904.html

    上一篇: Bootstrap:内容在中心

    下一篇: 使用Bootstrap对列进行居中