我的内容页面是这样的。我正在使用 Bootstrap 3.0.2。我希望我的表格显示在页面的水平中间(比如一些 250 像素的左边距)。 Bootstrap 或任何其他布局中的任何类都有帮助吗?我的表格非常小,只有 3 列和 5 行。
<div class="container">
<table class="table-condensed ">
</table>
</div>
最佳答案
<div class="container">
<table class="table-condensed center-block" style="width:100px;">
...
</table>
</div>
关于html - 使用 bootstrap 居中对齐内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19857469/