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.
我在做什麼錯?