<TABLE id=btn1 style="DISPLAY: inline; CURSOR: hand; HEIGHT: 24" cellSpacing=0 border=0 cellPading=0>
<TBODY>
<TR>
<TD><IMG height="24" src="btnimgs/botton001.gif" width="2" border=0></TD>
<TD style="BORDER-TOP: #8596ca 1pt solid; BACKGROUND-IMAGE: url(btnimgs/botton002.gif); CURSOR: hand; PADDING-TOP: 0px; BORDER-BOTTOM: #5a6da5 1pt solid; BACKGROUND-REPEAT: repeat-x">
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR style="COLOR: #5a6ca2">
<TD>&nbsp;</TD>
<TD>测试</TD>
<TD>&nbsp;</TD></TR></TBODY></TABLE></TD>
<TD><IMG height=24 src="btnimgs/botton003.gif" width="2" border=0></TD></TR></TBODY></TABLE>我上面的代码为什么左右两边出现间隙啊什么地方做的不对啊?

解决方案 »

  1.   

    两个table要设置成相同的固定宽
      

  2.   

    两个table要设置成相同的固定宽---------------????
      

  3.   

    <TABLE id=btn1 style="DISPLAY: inline; CURSOR: hand; HEIGHT: 24" cellSpacing=0 border=0 cellPading=0>
    <TBODY>
    <TR>
    <TD><IMG height="24" src="btnimgs/botton001.gif" width="2" border=0></TD>
    <TD style="BORDER-TOP: #8596ca 1pt solid; BACKGROUND-IMAGE: url(btnimgs/botton002.gif); CURSOR: hand; PADDING-TOP: 0px; BORDER-BOTTOM: #5a6da5 1pt solid; BACKGROUND-REPEAT: repeat-x">
    <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
    <TBODY>
    <TR style="COLOR: #5a6ca2">
    <TD>测试</TD>
    </TR></TBODY></TABLE></TD>
    <TD><IMG height=24 src="btnimgs/botton003.gif" width="2" border=0></TD></TR></TBODY></TABLE>貌似多了两个TD,现在这样看看。
      

  4.   

    <TABLE id=btn1 style="DISPLAY: inline; CURSOR: hand; HEIGHT: 24" cellSpacing=0 border=0 cellPading=0>....你的cellPading=0写错了,少了个d,应该是cellpadding="0"
      

  5.   

    在里面table里加上 frame="void"