查看: 1030|回复: 8
|
IE 6.0 不理会 HTML table 的 height attribute
[复制链接]
|
|
我的一个 table 有两个 column ,左边的 column 有一个 row ,右边的 column 有两个 row ,我要如何设定右边的 column 的第一个 row 的 height ?
在 IE 显示:

在 Firefox 显示:

<tr>
<td class="cell3" valign="top" rowspan="2">
<b><a name=p10794><a href="../member/user.php?uid=57" title="" >JM9</a></b><br>会员<br><center><div class="photo" style="width:150"><a href="http://img460.imageshack.us/img460/8310/10883535248231039dh9.jpg" target="_blank"><img src="http://img460.imageshack.us/img460/8310/10883535248231039dh9.jpg" height="105.875" alt="点击放大"></a></div></center>
</td>
<td class="cell3" height="10">
<table width="100%" cellpadding="0" cellspacing="0"><tr><td width="70%">发表于 2007年03月29日 11:03pm <a href="post.php?action=reply&pid=10794">引用</a> </td>
<td width="20%" nowrap>字体:<a href="javascript:;" >中</a> <a href="javascript:;" >大</a></td><td width="10%">第 <b>2</b> 楼</td></tr>
</table>
</td>
</tr>
<tr>
<td class="cell3" valign="top" id="floor_2_content">
<b></b>
有些事情<br />
并不是很正确
</td>
</tr>
我已经将 cell 的 height 设定为 10 了(红色字体),可是 IE 还是将两个 cell 的 height 平均地显示,请问有什么方法解决吗?
在 Firefox 显示 完全没问题
[ 本帖最后由 hui_yang 于 14-5-2007 09:38 PM 编辑 ] |
|
|
|
|
|
|
|
发表于 15-5-2007 01:34 AM
|
显示全部楼层
<tr>
<td class="cell3" valign="top" id="floor_2_content" height="XXX">
<b></b>
有些事情<br />
并不是很正确
</td>
</tr>
改改红色字的那边看看 |
|
|
|
|
|
|
|
发表于 15-5-2007 09:38 AM
|
显示全部楼层
试下在这个row放100%高度
- <td class="cell3" valign="top" id="floor_2_content" [color=Red]height="100%"[/color]>
复制代码 |
|
|
|
|
|
|
|

楼主 |
发表于 15-5-2007 11:46 PM
|
显示全部楼层
原帖由 V4ndrake 于 15-5-2007 09:38 AM 发表
试下在这个row放100%高度
<td class="cell3" valign="top" id="floor_2_content" height="100%">
试过了,总之 height 的 value IE 都不理会就对了 |
|
|
|
|
|
|
|
发表于 16-5-2007 09:45 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 16-5-2007 01:01 PM
|
显示全部楼层
try this
<tr height="10"> |
|
|
|
|
|
|
|
发表于 17-5-2007 12:23 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 17-5-2007 02:01 PM
|
显示全部楼层
vampcheah说的,不过换成100%,没可能不行
<tr>
<td class="cell3" valign="top" id="floor_2_content" height="100%">
<b></b>
有些事情<br />
并不是很正确
</td>
</tr> |
|
|
|
|
|
|
|

楼主 |
发表于 21-5-2007 11:22 PM
|
显示全部楼层
原帖由 V4ndrake 于 17-5-2007 12:23 PM 发表
为什么不要用DIV?
因为用 Table 比较方便,不用设定一些 style
原帖由 WuSheng 于 17-5-2007 02:01 PM 发表
vampcheah说的,不过换成100%,没可能不行
<tr>
<td class="cell3" valign="top" id="floor_2_content" height="100%">
<b></b> ...
试过了,不行  |
|
|
|
|
|
|
| |
本周最热论坛帖子
|