
表格使用的常见问题及解决方法(3) |
||||||
2、图片显示的问题 有时候我们明明在单元格中插入了背景图片,而且在Dreamweaver的视窗里也可以看到,但是一预览背景图片就不显示了。遇到这种请情况,不要着急,检查一下你的代码是否正确,我们来看下面的表格: 表格代码: <table width="300" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000"> <tr background="hzz01_050213.gif"> <td height="19"> </td> <td height="19"> </td> </tr> </table> 不错,上面的背景图确实有(background="hzz01_050213.gif"),但由于放错了地方,所以就显示不出来了,请把背景属性放在<td>标记里面,然后再预览一次,怎么样,这次出来了吧! 表格代码: <table width="300" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000"> <tr> <td height="19" background="hzz01_050213.gif"> </td> <td height="19" background="hzz01_050213.gif"> </td> </tr> </table> 3、表格布满页面的问题 |
||||||