Apple retina support for images in HTML
问题 On Apple's website it looks like they have support for retina displays. Does it work the same way that it does on iOS with a @2x image? 回答1: There are a number of good walkthroughs on how this is done, including: http://mir.aculo.us/2012/06/26/flowchart-how-to-retinafy-your-website/ 回答2: Store your images in /img/logo.png (regular version) and /img/logo@2x.png (retina version) JS for Head-Tag var retina = 0; try { retina = Number(window.devicePixelRatio); } catch(e) {} retina = (retina > 1) ?