我正在尝试调整表的输入/td 字段的大小,但似乎无法正常工作。我一直在引用下面的堆栈帖子。仍然没有运气。
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>XS</th>
<th>S</th>
<th>M</th>
<th>L</th>
<th>XL</th>
<th>XXL</th>
<th>XXXL</th>
</tr>
</thead>
<tbody>
<tr>
<td class="col-md-1"><input type="number" name="xs" ng-model="order.size.extra_small"></td>
<td class="col-md-1"><input type="number" name="s" ng-model="order.size.small"></td>
<td class="col-md-1"><input type="number" name="m" ng-model="order.size.medium"></td>
<td class="col-md-1"><input type="number" name="l" ng-model="order.size.large"></td>
<td class="col-md-1"><input type="number" name="xl" ng-model="order.size.extra_large"></td>
<td class="col-md-1"><input type="number" name="xxl" ng-model="order.size.double_extra_large"></td>
<td class="col-md-1"><input type="number" name="xxxl" ng-model="order.size.triple_extra_large"></td>
</tr>
</tbody>
</table>
</div>
最佳答案
将 form-control
类添加到您的 input
字段 https://jsfiddle.net/NourSammour/u2c09yb5/1/
关于javascript - Bootstrap 3 调整表数据和输入字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35633763/