在我的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