【发布时间】:2010-12-16 11:26:57
【问题描述】:
我的网站布局有这个问题,它基本上阻止我继续它,它正在破坏一切。
HTML 代码如下:
<table cellpadding="0" cellspacing="0" width="446" height="362">
<!-- MSTableType="layout" -->
<tr>
<td valign="top" colspan="2" height="110">
<p align="center">Banner</td>
</tr>
<tr>
<td valign="top" height="95">I want this cell to have a fixed height</td>
<td valign="top" rowspan="3" width="305">
<p align="center">Text goes here - if the text is too long, I want the
stretching cell to vary in height, not the other 2.</td>
</tr>
<tr>
<td valign="top" height="68">I want this cell to have a fixed height</td>
</tr>
<tr>
<td height="89" width="141" valign="top">Stretching/Flexible cell - I
want this one to vary in height if the text on the right cell is too
long</td>
</tr>
</table>
如您所见,如果我编写的文本大于“文本单元格”高度,则右列中的所有单元格都会拉伸,而我只希望最后一个单元格这样做。你能帮帮我吗?
【问题讨论】:
标签: html html-table cell