2012-05-24 63 views
-2

你好,我有下一个在IE中工作的css类,但不能在FF和Chrome中工作,我需要修改它来解决这个问题吗?CSS背景在Chrome和FF中不起作用

.extHeaderStyle { background: transparent url(/sline/navigation/header/images/footerBack.gif) repeat-x -1 left; } 


<tr class="GridHeaderStyle extHeaderStyle" align="left" style="font-size:14px;"> 
      <th scope="col">AppErrorId</th><th scope="col">AppName</th><th scope="col">ServerIp</th><th scope="col">ClientIp</th><th scope="col">Request</th><th scope="col">ErrMsg</th><th scope="col">CreatedBy</th><th scope="col">CreatedDate</th> 
     </tr> 

回答

1

删除-1?或者在值后使用单位。

+0

我删除它,但我没有看到背景 –

+1

不工作的朋友! – Neji

+0

给出您尝试解决问题的页面的链接。 – Rasmus

1

你需要一个单元-1后,如-1px-1em。只有值0才允许没有单位。

0

我把类放在th标签和背景已开始工作。