我如何将 span7
中的 div 居中,以便 span7
和 span5
都显示在同一行中。我正在使用 bootstrap 2.3.2
这是我的代码 jsfiddle
<div class="row-fluid">
<!-- 1st Column -->
<div class="span7">
<div id="imagediv" style="position: relative;">
<img src="" style="z-index: 0;" >
</div>
</div>
<!-- END 1st Column -->
<!-- 2nd Column -->
<div class="span5">
<div>
<p class="well" style="min-height: 440px; word-wrap: break-word;"> Profile Info </p>
</div>
</div>
<!-- End 2nd Column -->
</div>
我怎样才能使 imagediv
成为 span7
的中心
最佳答案
<div id="imagediv" class="text-center" style="position: relative;">
<img src="" style="z-index: 0;" >
</div>
添加类 text-center
关于jquery - 如何使用 Bootstrap 将 div 居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24651307/