2016-12-15 195 views
-1

我使用圓形圖像作爲背景圖像。但它在邊緣呈現像素化。我該如何解決它?背景圖像像素化問題

enter image description here

這裏是我使用

.icons.second_icon { 
    width: 100px; 
    height: 100px; 
    margin: 0 auto; 
    background: url(http://yoursite.com/wp-content/uploads/2016/02/mn-1.png); 
    background-size: 100% 100%; background-repeat: no-repeat; 
} 

<div class="icons second_icon"></div> 
+0

發佈您的代碼。 – 2016-12-15 19:24:43

+0

圖像的質量是什麼?什麼是文件大小?它是什麼樣的形象? – mlegg

+0

在我看來,這是圖像的過錯... –

回答

1

你會注意到,你的圖像實際上是在邊緣的像素化的代碼。也許你需要使用不同的圖像或在編輯程序中觸摸它?

enter image description here

+0

具體即時看到右側的像素化。 –

+0

實際上圖像根本沒有像素化。你可以檢查它在檢查元件 –

+0

抱歉不同意,但肯定是像素化。看到附加的圖片:) –