日期:2014-05-17  浏览次数:20568 次

html中图片为什么不能铺满整个td
<table width="100%" border="1">
  <tr>
  <td height="9" colspan="2" bgcolor="#FFCC33"></td>
  </tr>
  <tr>
  <td width="883" height="79" ><img src="image/logo.jpg" width="883" height="79" /></td>
  <td width="20%">&nbsp;</td>
  </tr>
  <tr>
  <td height="9" colspan="2" bgcolor="#FFCC66"></td>
  </tr>
  <tr>
  <td colspan="2">&nbsp;</td>
  </tr>
</table>

上面的图为在dreamwever中看到的,在dreamwever中看到的图片明明铺满了那一列,可下面的图片显示在浏览器中图片和td中还有一些空隙,我也设置了<td width="883" height="79" ><img src="image/logo.jpg" width="883" height="79" /></td>这句话让他们的宽一样,可还是不行?怎么弄的

------解决方案--------------------
HTML code

<tr>
  <td width="883" height="79" ><img src="image/logo.jpg" width="883" height="79" /></td>
  <td width="20%">&nbsp;</td>
  </tr>