Ich habe alle gängigen Empfehlungen in Stack Overflow, wie dies zu tun, aber immer noch meine input
hat ein bisschen niedriger height
als die td
.Eingabe Eingabe td Höhe und Breite
Sieht aus wie die wichtigsten CSS-Optionen sind display:table-cell;
und width:100%;
WICHTIG - Wenn ich table table-condensed
entfernen, es ist OK. Die Frage ist, wie input
height
mit table-condensed
zu erhalten?
.table-condensed thead > tr > th,
.table-condensed tbody > tr > th,
.table-condensed tfoot > tr > th,
.table-condensed thead > tr > td,
.table-condensed tbody > tr > td,
.table-condensed tfoot > tr > td {
padding: 5px;
}
Sie müssen sie also außer Kraft zu setzen:
td.zeon_input_table_cell input {
display: table-cell;
width: 100%;
background-color: transparent
}
td {
border: solid
}
<table id="formset" class="form table table-condensed zeon zeon-row-hover">
<thead>
<th>Column 1</th>
<th>Column 2</th>
</thead>
<tbody>
<tr class="row1">
<td class="zeon_input_table_cell">
<input id="id_form-0-id" name="form-0-id" type="hidden" value="1">
</td>
<td class="zeon_input_table_cell">
<input id="id_form-0-min_delivery_value" name="form-0-min_delivery_value" step="any" type="number" value="5000.0">
</td>
</tr>
dippas benötigen, Ihre Antwort sieht wie die richtige aus, aber ich kann nicht sehen, wie es in JSFIddle funktioniert. Kannst du es bitte dort angeben, damit ich es richtig ankreuzen kann? –
@EdgarNavasardyan hier gehen Sie [Geige] (https://jsfiddle.net/4hrbbj9p/) – dippas