表[bootstrap]中的文本对齐

时间:2019-03-18 11:26:48

标签: css html5 bootstrap-4

Twitter的Bootstrap框架中是否存在一组对齐文本的类?

例如我有一些表,它们具有$总计,我想右对齐...

<th class="align-right">Total</th>

<td class="align-right">$1,000,000.00</td>

1 个答案:

答案 0 :(得分:0)

您可以使用class="text-right"

更多参考https://getbootstrap.com/docs/4.0/utilities/text/

相关问题