2014-05-01 30 views
3

如何使用picturefill提供視網膜圖像?picturefill.js不能正確提供視網膜圖像

目前我正在使用picturefill.js的第二個版本,它用作polyfill。

我的HTML代碼:

<img src="http://placehold.it/300x150" srcset="http://placehold.it/600x300 2x" alt="Alternative" /> 

的問題是:所有的瀏覽器(Chrome的除外)所得到的 「2X」 的版本,但我的屏幕不支持視網膜。

I think Chrome is working because this feature was recently implemented.

我在做什麼錯?

回答

-1

我會測試你已經複製到你的服務器的實際的.jpg圖像,而不是使用placehold.it - 你只會迷惑自己。

相關問題