我试图将我的文本集中在一个 div 中(垂直和水平),但我使用的是 bootstrap3 网格系统,所以我似乎找不到适用的答案。我发现的大多数答案都需要一张表格。
这是我的标记:
<div class="row">
<div class="col-xs-4">
This is the text that I want to center...
</div>
<div class="col-xs-4">
This is the text that I want to center...
</div>
<div class="col-xs-4">
This is the text that I want to center...
</div>
</div>