引导表没有填充/边距? [英] Bootstrap table with no padding/margin?

查看:68
本文介绍了引导表没有填充/边距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这张桌子:

<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>

我使用Bootstrap作为我的框架,它看起来像这样:

I use Bootstrap as my framework and it looks like this:

我该如何拉伸输入宽度&表格单元格的高度?

How can i stretch the input width & height to fit table cell?

我在输入上使用CSS:宽度:100%
我已经在td上尝试过CSS: padding:0;保证金:0;

I'm using CSS on input: width: 100%
I've tried CSS on td: padding: 0; margin: 0;

推荐答案

作为@Araz评论:

tr td{
  padding: 0 !important;
  margin: 0 !important;
}

这篇关于引导表没有填充/边距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆