1:定义了多个div,在每个div中间嵌入table以及img,发现两个div总是无法贴紧,之间总是有空隙??
2:<div style="border:1px solid red">aaa</div><div style="border:1px solid blue">aaa</div>
帖你的代码。
是不是没有设置<table border=0 cellpadding=0 cellspacing=0>
3:cellpadding = 0 cellspacing = 0 是一定会设置的,我发觉嵌入图片就会有空隙,不嵌图片就没有,很奇怪啊。代码如下:
<div id ="leftToolBar" style="LEFT: 0px; WIDTH: 185px; POSITION: relative; TOP: 0px;Cursor: hand; ">
<div style="LEFT: 0px; WIDTH: 185px; POSITION: relative; TOP: 0px;Cursor: hand; ">
<table cellpadding = 0 cellspacing = 0>
<tr>
<td>
<img src="../image/accountBar/logo.gif" border="0">
</td>
</tr>
</table>
</div>
<div id="menuHeadDiv0" style="LEFT: 0px; WIDTH: 185px; POSITION: relative; TOP: 0px;Cursor: hand; ">
<table cellpadding="0" cellspacing="0">
<tr>
<td bgcolor = "red">
<img id="mySummeryImg" src="../image/AccountBar/MySummary.gif" border="0"></td>
</tr>
</table>
</div>
4:<td><img src="../image/accountBar/logo.gif" border="0"></td>
去掉空格