【发布时间】:2020-09-10 04:12:58
【问题描述】:
我有一个问题要问你。我正在尝试在 container fluid div 中修复表格列的大小。我尝试设置 style="width: xx.x%" 但它会根据单元格内容继续更改。
我也尝试过使用 max-with,但它仍然不起作用。在我的代码下面:
<div class="container-fluid">
<div class="row">
<div class="col-12">
<table class="table table-sm text-nowrap">
<thead>
<tr class="bg-info text-white">
<th style="max-width: 1%">2020</th>
<th style="max-width: 9%">Voci</th>
<th class="text-center" style="max-width: 7.5%">Gen</th>
<th class="text-center" style="max-width: 7.5%">Feb</th>
.......
我希望该列具有固定宽度(广告示例最大值和最小值等于 7.5%)。 我怎么能在引导程序中得到这个?
【问题讨论】:
标签: html django html-table bootstrap-4 django-templates