【发布时间】:2014-06-18 13:41:51
【问题描述】:
如何使用picturefill 提供视网膜图像?
目前我正在使用 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.
我做错了什么?
【问题讨论】:
标签: javascript html retina picturefill