【发布时间】:2020-12-20 09:14:49
【问题描述】:
我正在尝试将我的两个引导按钮并排(水平)对齐并将它们放在表格单元格中,但我不能
我使用 bootstrap4
<div>
<table class="table table-striped table-bordered">
<tr>
<th>ID</th>
<th>Nom categorie </th>
<th>Operations</th>
</tr>
<tr *ngFor="let categorie of categories">
<td>{{ categorie.id }}</td>
<td>{{ categorie.nom }}</td>
<td >
<div class="row">
<div class="col-sm-12" style="display: flex; flex-direction: row;align-content: space-between">
<button type="button" class="btn btn-secondary">Mettre à jour </button>
<button type="button" class="btn btn-secondary">Supprimer</button>
</div>
</div>
</td>
</tr>
</table>
</div>
【问题讨论】:
-
将 justify-content-center 类添加到按钮周围的包装器中
标签: html css twitter-bootstrap alignment