<style>
input {background:red;border:none;height:30px;margin:0px}
td {background-color:blue;padding:0px;margin:0px}
</style>

<table cellspacing=10 cellpadding=0 bgcolor="pink">
<tr>
<td><input type="text"/></td>
<td><input type="text"/></td>
</tr>
<tr>

 

如图:

red input的上下有细blue线。怎样去掉?

 怎样清除td和input之间空隙

 

修改后

 

<style>
input {background:red;border:none;height:30px;margin-top:-1px;margin-bottom:-1px;}
}
td {background-color:blue;padding:0px;margin:0px}
</style>

<table cellspacing=10 cellpadding=0 bgcolor="pink">
<tr>
<td><input type="text"/></td>
<td><input type="text"/></td>
</tr>
<tr>
<td>11
</td>
<td>11
</td>
</tr></table>

怎样清除td和input之间空隙

 

相关文章:

  • 2021-10-22
  • 2021-10-04
  • 2021-12-07
  • 2022-12-23
  • 2021-11-30
  • 2021-06-22
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案