我正在使用引导程序3。我希望输入字段适合表中。这是我的代码,我想在表边界的引导程序类中执行此操作。这是代码:
<table class="table table-bordered table-hover">
<thead>
<tr>
<th class="col-md-4">Organization:</th>
<th class="col-md-4">City:</th>
<th class="col-md-2">From:</th>
<th class="col-md-2">To:</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="name in getdrugnameNewArray">
<td>Stackoverflow</td>
<td>2001</td>
<td>2009</td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
CSS代码:
td>input {
margin: 0;
height: 100% !important;
display: inline-block;
width: 100%;
border-radius: 0 !important;
}
Run Code Online (Sandbox Code Playgroud)
我需要这样的<td>单元格作为输入字段。任何帮助表示赞赏。谢谢。