在我看来,bootstrap 3的样式表中缺少 "center-block "类。 我错过了什么吗?
这里描述了它的用法,http://getbootstrap.com/css/#helper-classes-center
这是Bootstrap 3.0.1版本中的新内容,所以请确保你有最新的(10/29)...
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="center-block" style="width:200px;background-color:#ccc;">...</div>
</div>