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

menu由图片组成,但是只显示一级菜单时,中间有细缝
<TR>
<TD>
<div   id= 'KB1Parent '   class= 'parent '>
<A   href= "# "   onclick= "javascript:turndisplay( 'KB1Child '); ">
<IMG   height=25   alt= " "   src= "../img/menulogo_2.gif "   onClick= "expandIt( 'KB1 ');   return   false "     target= "winprogram "   width=202   border=0>
</A>
</div>
</TD>
</TR>

<TR>
<TD>
<div   id= 'KB1Child '   class= 'child '>
<A   href= "../appJob/appJob.do?todo=appjob_introduce "   target= "winprogram "   class= "parent "   name= 'tt '>
<IMG   height=25   alt= " "   src= "../img/menulogo_13.gif "   width=202   border=0>
</A>
<br>
<A   href= "../appJob/appJob.do?todo=appjob_introduce "   target= "winprogram "   class= "parent "   name= 'tt '>
<IMG   height=25   alt= " "   src= "../img/menulogo_14.gif "   width=202   border=0>
</A>
</div>
</TD>
</TR>

<TR>
<TD> <div   id= 'KB2Parent '   class= 'parent '>
<A   href= "# "   onclick= "javascript:turndisplay( 'KB2Child '); ">
<IMG   height=24   alt= " "   src= "../img/menulogo_3.gif "   onClick= "expandIt( 'KB2 ');   return   false "     target= "winprogram "
                        width=202   border=0> </A> </div>
</TD> </TR>
<TR>
<TD>
<div   id= 'KB2Child '   class= 'child '>
<A   href= "../appJob/appJob.do?todo=appjob_query "   target= "winprogram "   class= "parent "   name= 'tt '>
<IMG   height=24   alt= " "   src= "../img/menulogo_9.gif "
                        width=202   border=0>
</A> <br>
<A   href= "../appJob/appJob.do?todo=appjob_query "   target= "winprogram "   class= "parent "   name= 'tt '>
<IMG   height=24   alt= " "   src= "../img/menulogo_10.gif "   width=202   border=0>
</A>
</div>
</TD> </TR>

------解决方案--------------------
把table、div对象的margin、border、padding的值都设成0