当前位置: 代码迷 >> ASP >> 虚心请问!怎么让表格中其中一列的行高按内容的多少自动调整?
  详细解决方案

虚心请问!怎么让表格中其中一列的行高按内容的多少自动调整?

热度:56   发布时间:2012-02-22 19:36:55.0
虚心请教!!如何让表格中其中一列的行高按内容的多少自动调整??
如何让表格中其中一列的行高按内容的多少自动调整?
比如说以下表格中,我想让第一,二,四,五行行高固定,而让第三行行高随内容多少自动调整行高,该如何实现?请高手指点!!!

<table   width= "225 "   border= "0 "   cellSpacing=0   cellPadding=0>
            <tr>
                <td   colspan= "3 "   background= "beijin/beijin7_r1_c1.gif "   width= "225 "   height= "20 "> &nbsp; </td>
               
            </tr>
            <tr>
                <td   colspan= "3 "   height= "20 "> &nbsp; </td>
               
            </tr>
            <tr>
                <td   height= "40 "> &nbsp; </td>
                <td> &nbsp; </td>
                <td> &nbsp; </td>
            </tr>
            <tr>
                <td   height= "30 "> &nbsp; </td>
                <td> &nbsp; </td>
                <td> &nbsp; </td>
            </tr>
              <tr>               <td   background= "beijin/beijin8_r1_c1.gif "   width= "20 "   height= "19 "> &nbsp; </td>
                <td   width= "185 "> &nbsp; </td>
                <td   background= "beijin/beijin8_r1_c3.gif "   width= "20 "   height= "19 "> &nbsp; </td>
            </tr>
        </table>

请指点,谢谢!

------解决方案--------------------
让它自动调整,你就不要设置height就可以了
  相关解决方案