在我的jsp项目中,我使用表格来排序我的值。 有很多垂直空间被浪费在行中,我怎样才能避免它? 我试图设置填充,边距等为0px。仍有空间即将到来。 我正在使用dream weaver进行设计。在html表格中避免不必要的间距
<table width="742" cellpadding="0" cellspacing="0" vspace="0">
<tr onmouseover='over(1)' onmouseout='out()'>
<td width="113"><h4>F Name 1</h4></td>
<td width="126"><h4>L Name 1</h4></td>
<td width="61"><h4>Age 1</h4></td>
<td width="111"><h4>Gender 1</h4></td>
<td width="304"><h4>Address 1</h4></td>
</tr>
<tr onmouseover='over(2)' onmouseout='out()'>
<td ><h4>F Name 2</h4></td>
<td><h4>L Name 2</h4></td>
<td><h4>Age 2</h4></td>
<td><h4>Gender 2</h4></td>
<td><h4>Address 2</h4></td>
</tr>
<tr onmouseover='over(3)' onmouseout='out()'>
<td><h4>F Name 3</h4></td>
<td><h4>L Name 3</h4></td>
<td><h4>Age 3</h4></td>
<td><h4>Gender 3</h4></td>
<td><h4>Address 3</h4></td>
</tr>
</table>
只要停止使用'到处h4'。这些值不是标题。 – Alohci
使用[reset css](http://meyerweb.com/eric/tools/css/reset/) – anglimasS