Bjö*_*n C 2 html css twitter-bootstrap
我有这张桌子:
<table class="table table-bordered table-condensed col-md-12">
<thead>
<tr>
<td>Input</td>
</tr>
</thead
<tbody>
<tr>
<td><input type="text" /></td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
我使用Bootstrap作为我的框架,它看起来像这样:
如何拉伸输入宽度和高度以适合表格单元格?
我在输入上使用CSS:width: 100%
我在td上尝试过CSS:padding: 0; margin: 0;
Bjö*_*n C 14
正如@Araz评论:
tr td{
padding: 0 !important;
margin: 0 !important;
}
Run Code Online (Sandbox Code Playgroud)