Firefox下table-layout:fixed无效问题

   测试代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; UTF-8">
<title>任务进度新Gantt图(周-日)</title>

<style type="text/css">

.scrollColThead {
 position: relative;
 z-index: 2;
}

.scrollColThead th{
 text-align: center ;
 font-size: 12px;
 border-bottom: 1px solid #4D7A9F;
 border-right: 1px solid #4D7A9F;
}

</style>
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed">
 <thead>
  <tr class="scrollColThead" style="background-color:#A5BBCD;text-align:center;height:20px;">
   <th style="background-color:#DDDDDD;text-align:center;width:20px;" title="2009-12-06">日</th>
   
   <th style="width:20px;" title="2009-12-07">一</th>
  
   <th style="width:20px;" title="2009-12-08">二</th>
  
   <th style="width:20px;" title="2009-12-09">三</th>

   <th style="width:20px;" title="2009-12-10">四</th>
   
   <th style="width:20px;" title="2009-12-11">五</th>
   
   <th style="background-color:#DDDDDD;text-align:center;width:20px;" title="2009-12-12">六</th>
  </tr>
 </thead>
</table>

</body>
</html>
    
    在IE6和Firefox3.6.8下测试发现整个表头行的宽度不相等,相差几个像素。当去除style="table-layout:fixed"时,在两个浏览器下行宽度是相等的!所以,推断是table-layout:fixed在Firefox下无效引起的,请问大家有没有其他的看法和解决方案,另, Firefox下有替代CSS expression方案 吗?请多指教 !谢谢! 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值