首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

menu由图片组成,但是只显示一级菜单时,中间有细缝,该如何处理

2012-02-16 
menu由图片组成,但是只显示一级菜单时,中间有细缝TRTDdivid KB1Parentclass parent Ahref # o

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

热点排行