Ich plane, eine Tabelle zu erstellen, in der einige Spalten eine feste Breite haben müssen und nicht automatisch angepasst werden.Bootstrap 4 reaktionsfähige Tischbreite pro Spalte mit spezifischer Breite
Ich versuchte mit dieser Methode, aber es funktioniert nicht. Es scheint immer noch Breite automatisch auf der Textlänge anzupassen.
Wie soll ich das lösen?
<div class="container">
<table class="table table-bordered">
<thead>
<tr class="m-0">
<th class="w-20">a</th>
<th class="w-10">b</th>
<th class="w-20">c</th>
<th class="w-40">d</th>
<th class="w-10">e</th>
</tr>
</thead>
<tbody>
<tr class="m-0">
<th class="w-20">a. Width with 20</th>
<th class="w-10">b. Smaller width column</th>
<th class="w-20">c. Should be small but I'm adding the maximum text here just to test if w-20 is working.</th>
<th class="w-40">d. Biggest width but not working!</th>
<th class="w-10">e. Another small column</th>
</tr>
</tbody>
</table>
</div>
In Ordnung. Ich dachte, dass diese Klassen existieren, aber nichts in der Konsole zeigt. Ich dachte, ich mache es falsch. Vielen Dank. –