我希望能够将包含以下文本的div放在页面中间。我虽然我将能够使用“中心块”级的引导,但它似乎并没有工作:Bootstrap - 如何将包含文本的div放在中间?
实时预览: http://codepen.io/anon/pen/tCIlG
Code below:
<div class="row">
<div class="col-md-4 center-block text-center">
I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.I want to center the div that this text is in.
</div>
</div>
可能重复[如何在div中水平居中div?](http://stackoverflow.com/questions/114543/how-to-horizontally-center-a-div-in-a-div) – Sasa 2014-10-30 22:37:13