2012-05-24 62 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標籤和背景已開始工作。