0

我已经制作了一个边框间距为 16px 高度的表格,我只想为一个特定的单元格取消该空间。这是表格:

<table width="100%" style="text-align: center; position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-collapse: separate; border-spacing: 0 16px;">
  <tr style="background-image: url(Pics/background.jpg);">
    <td> Some text </td>
  </tr>
<!--Only here I do not want a space-->
  <tr style="border-collapse: collapse; border-spacing: 0 0;">
    <td> Text </td> 
  </tr>
</table>
    
  

我想为桌子的其余部分保留空间,希望您能提供帮助。

4

1 回答 1

0

我解决了!!!我只是简单地定位了我想要没有空间的行,使其顶部的行更高,直到它们之间的空间消失。我使用的代码:

<td style="position: relative; bottom: 18px;>

就这么简单。。xD

于 2018-04-04T12:25:40.780 回答