表格代码(固定宽度)
AAAAAA BBBBB CCCC DDD EE F
aaa bbb ccc ddd eee fff
AAA BBB CCC DDD EEE FFF
第四行 第四行 第四行 第四行 第四行 第四行
HTML代码:
<div class="pb-2">
<table class="table table-bordered">
<tr>
<th class="align-middle text-center list-group-item-action" style="width: auto">AAAAAA</th>
<th class="align-middle text-center list-group-item-action" style="width: auto">BBBBB</th>
<th class="align-middle text-center list-group-item-action" style="width: auto">CCCC</th>
<th class="align-middle text-center list-group-item-action" style="width: auto">DDD</th>
<th class="align-middle text-center list-group-item-action" style="width: auto">EE</th>
<th class="align-middle text-center list-group-item-action" style="width: auto">F</th>
</tr>

<tr> <td class="align-middle text-center list-group-item-action">aaa</td> <td class="align-middle text-center list-group-item-action">bbb</td> <td class="align-middle text-center list-group-item-action">ccc</td> <td class="align-middle text-center list-group-item-action">ddd</td> <td class="align-middle text-center list-group-item-action">eee</td> <td class="align-middle text-center list-group-item-action">fff</td> </tr>

<tr> <td class="align-middle text-center list-group-item-action">AAA</td> <td class="align-middle text-center list-group-item-action">BBB</td> <td class="align-middle text-center list-group-item-action">CCC</td> <td class="align-middle text-center list-group-item-action">DDD</td> <td class="align-middle text-center list-group-item-action">EEE</td> <td class="align-middle text-center list-group-item-action">FFF</td> </tr>

<tr> <td class="align-middle text-center list-group-item-action">第四行</td> <td class="align-middle text-center list-group-item-action">第四行</td> <td class="align-middle text-center list-group-item-action">第四行</td> <td class="align-middle text-center list-group-item-action">第四行</td> <td class="align-middle text-center list-group-item-action">第四行</td> <td class="align-middle text-center list-group-item-action">第四行</td> </tr>

</table> </div>

CSS代码:
<style>
.table td, .table th {
width: 100px; /* 设置为你想要的固定宽度 */
}
</style>