日期:2014-05-17  浏览次数:20612 次

求各位帮忙看看为什么下面这段代码在IE和火狐上面显示的不一样呢?快急死了!!?
<div id="Controls" style=" position: absolute; width: 600; height: 68; left: 2px;top:24px; border:0px; padding: 0px">  
<table width ='630' border='0' borderColor=#000000  borderColorDark=#ffffff borderColorLight=#000080 cellspacing='0' cellpadding='0' style='background-color:transparent'>
<#if list?has_content>
<#list list as list>
<#if list.tasktp?has_content>
<tr width='100%' height='24'>
<td width='100%' >
<table border=0 cellspacing=0 cellpadding=0 width='100%' style='background-color:transparent'>
<tr height=14 width='100%'>
<td width='#{list.startprogress/100}%'></td>
<td background = '<#if  list.state='Y'>../images/spacer_gray.gif 
<#else>
<#if (list.worktime gt list.pduration)||(list.worktime/list.pduration) gt (list.progress/10000)>../images/spacer_red.gif
<#else>../images/spacer_blue.gif
  </#if>
       </#if>' width='#{(list.endprogress-list.startprogress)/100}%' title='任务状态:<#if list.state='P' >进行中</#if><#if list.state='Y' >完成</#if><#if list.state=='N'>计划中</#if><#if list.state=='X'>取消</#if>
任务目录:\${list.name?if_exists}
版本名称:${list.pvname?if_exists}
计划工时:#{list.pduration?if_exists/60;m2M2}小时
消耗工时:#{list.worktime?if_exists/60;m2M2}小时
时间:${list.startdate?string("yyyy-MM-dd")} - ${list.finishdate?string("yyyy-MM-dd")}
工作人:<#if list.testuser?has_content>${list.testuser?if_exists}<#else>&lt;所有人&gt;</#if>
确认人:${list.checkuser?if_exists}&nbsp;
任务进度:${(list.progress/100)?string("0.##")}% '>
<table height='6' border=0 cellspacing=0 cellpading=0 width='#{list.progress?if_exists/100}%' background='../images/black.gif' style='background-color:transparent'>
<tr width='100%'>
<td></td>
</tr>
</table>
</td>
<td nowrap width='#{(100-list.endprogress/100)}%'><font style='FONT-SIZE: 9pt'><#if list.testuser?has_content>${list.testuser?if_exists}<#else>&lt;所有人&gt;</#if></font></td>
</tr>
</table>
</td>
</tr>
table 任务 ie 火狐;兼容

------解决方案--------------------
有什么不一样呢,我就看出表头背景色不一样