佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1030|回复: 8

IE 6.0 不理会 HTML table 的 height attribute

[复制链接]
发表于 14-5-2007 09:25 PM | 显示全部楼层 |阅读模式
我的一个 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 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

发表于 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 | 显示全部楼层
原帖由 hui_yang 于 14-5-2007 09:25 PM 发表
我的一个 table 有两个 column ,左边的 column 有一个 row ,右边的 column 有两个 row ,我要如何设定右边的 column 的第一个 row 的 height ?

在 IE 显示:
http://i100.photobucket.com/albums/m26/zy ...


试下在这个row放100%高度

  1. <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 | 显示全部楼层
那么 style="height: x" 呢?
回复

使用道具 举报

发表于 16-5-2007 01:01 PM | 显示全部楼层
try this
<tr height="10">
回复

使用道具 举报

Follow Us
发表于 17-5-2007 12:23 PM | 显示全部楼层
为什么不要用DIV?
回复

使用道具 举报

发表于 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>
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 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> ...

试过了,不行
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 3-9-2025 06:17 AM , Processed in 0.128206 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表