2012-07-31 135 views
0

我正在使用Chrome瀏覽器。我有標誌一個完全透明的.png圖像,但似乎有一個問題:透明PNG圖像在瀏覽器中不完全透明

enter image description here

你需要看起來很第二時間,但正如你所看到的影像比背景較亮色調。我用CSS創建背景:

background: #e1e2e4; 
background: -webkit-gradient(linear, left top, 
      left bottom, from(#e1e2e4), to(#8f9094)); 

background: -moz-linear-gradient(top, #e1e2e4, #8f9094); 
filter: progid:DXImageTransform.Microsoft.gradient 
     (startColorstr='#e1e2e4', endColorstr='#8f9094'); 

background-repeat: no-repeat; 
background-attachment: fixed; 

任何想法爲什麼會發生這種情況?我該如何解決這個問題?

+0

我實在看不出它...是PNG保存在24位PNG? – smilledge 2012-07-31 11:56:00

+0

可能圖像在整個背景上都有一個非常輕微的不透明度。你有沒有嘗試過進入Photoshop(或相當的),選擇背景,刪除它,並保存圖像? – 2012-07-31 11:56:15

+1

你確定色差不是背景漸變的一部分嗎? – feeela 2012-07-31 12:06:28

回答

3

它與顏色配置文件和顏色校正有關。有關更多詳細信息,請參閱this article