表格排版,请看效果。
<HTML> <HEAD> <TITLE> </TITLE>
</HEAD>
<BODY scroll=auto >
<TABLE style= "WIDTH: 100%;BORDER: #3366cc 1px; BORDER-COLLAPSE: collapse " cellSpacing= "0 " cellPadding= "4 " border= "1 " bordercolor= "#3366cc " >
<TR>
<TD colSpan= "2 "> aaaaaaaaaaaa </TD>
</TR>
<TR>
<TD style= "WIDTH: 93px " > 93像素 </TD>
<TD> 本列自适应宽度 </TD>
</TR>
</TABLE>
<br> <br>
<TABLE style= "WIDTH: 100%;BORDER: #3366cc 1px; BORDER-COLLAPSE: collapse " cellSpacing= "0 " cellPadding= "4 " border= "1 " bordercolor= "#3366cc " >
<TR>
<TD colSpan= "2 "> 为什么本行的内容一长,下面的固定93像素的列就不是93像素了? aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 本行跨两列呀! </TD>
</TR>
<TR>
<TD style= "WIDTH: 93px " > 93像素 </TD>
<TD> 本列自适应宽度 </TD>
</TR>
</TABLE>
<br> <br>
</BODY> </HTML>
------解决方案--------------------页首加上DTD应该可以解决
------解决方案--------------------leohuang(LEO)的可以用,我正好要用到,谢谢lz,谢谢leohuang(LEO)
------解决方案--------------------把leohuang(LEO)里面的span改成div,或者把span变成block元素