html - 双头表中的引导程序居中
问题描述
您好,我有一张桌子,我想在另外两个之间居中。我想更改Vieillesse de base的位置以显示在Provisionnel和Régularisation的中心。
这是我的 HTML:
<div class="row mt-1">
<div class="col-12">
<table class="table table-striped table-adjust ">
<thead class="cordonnes-cabinet">
<tr>
<th scope="col">Date</th>
<th scope="col" style="text-align:center" colspan="2">Vieillesse de base</th>
<th scope="col" style="text-align:right">Complémentaire</th>
<th scope="col" style="text-align:right">Total</th>
</tr>
<tr>
<th scope="col">...</th>
<th scope="col" style="text-align:right">Provisionnel</th>
<th scope="col" style="text-align:right">Régularisation</th>
<th scope="col" style="text-align:right">...</th>
<th scope="col" style="text-align:right">...</th>
</tr>
</thead>
<tbody class="cordonnes-cabinet">
@for (int i = 0; i < echeancierGeneriqueAjustee.Count; i++)
{
<tr>
<th style="font-weight:100">@(echeancierGeneriqueAjustee[i]["Date"])</th>
<td style="text-align:right">@(echeancierGeneriqueAjustee[i]["MontantProv"])</td>
<td style="text-align:right">@(echeancierGeneriqueAjustee[i]["MontantRegul"])</td>
<td style="text-align:right">@(echeancierGeneriqueAjustee[i]["MontantComplement"])</td>
<td style="text-align:right">@(echeancierGeneriqueAjustee[i]["TotalEcheance"])</td>
</tr>
}
<tr>
<th style="font-size:14px">Total</th>
<td style="text-align:right">@(echeancierGeneriqueAjustee[0]["TotalProv"])</td>
<td style="text-align:right">@(echeancierGeneriqueAjustee[0]["TotalRegul"])</td>
<td style="text-align:right">@(echeancierGeneriqueAjustee[0]["TotalComplement"])</td>
<td style="text-align:right">@(echeancierGeneriqueAjustee[0]["Total"])</td>
</tr>
</tbody>
</table>
</div>
</div>
解决方案
推荐阅读
- python - 为什么我的 API 密钥在 Python 中的 base64 编码与外部软件对同一密钥的编码不同?
- python - 如何用 0 替换空字符串,但如果不为空则不理会
- github - 设置 Travis-CI 以仅构建已批准的拉取请求
- node.js - 在猫鼬中,如果值为 null,则不应将其添加到 MongoDB
- aem - AEM Query Builder 多个属性值
- heroku - Heroku 缺少必需的标志:-a,
- vba - 根据输入列值选择列表框的行
- c# - 用于批处理的 Azure 服务总线队列最大更新消息锁
- django - 如何在管理面板中限制样本
- ios - 在幻灯片 iOS APP 中从 URL Xcode 9 加载图像