iPhone4ã®Retinaãã£ã¹ãã¬ã¤ã§é²è¦§ ãããéã«èªåã§é«è§£å度ã®ç»åã« èªåã§åãæ¿ããjQueryã®ã³ã¼ãã @2xãä»ãã¢ã¬ã§ããã¡ãã£ã¨ä»æ´ ãªè©±é¡ãªã®ã§èª°ãè¦ã¦ç¡ããã㪠æ¥ææ¥ã«æ¸ãã¦ç½®ããã¨æãã¾ãã jQuery Retinaã£ã¦ãããã©ã°ã¤ã³ãããã¾ããããã®ã©ã¤ãã©ãªã®ããã«è²ã å®ãããã£ã¦ããããããªãã®ãããªãããã ã®ã¹ããããã§ããå®éã«ã¯ããã¡ãã工夫ããªãã¨ãªããªãã¨æãã¾ãã®ã§åèç¨åº¦ã§ãã¨ãããåãRetinaãªãã¨ãã®äºãè¯ãåãã£ã¦ç¡ãã§ï½ ã³ã¼ã if (window.devicePixelRatio > 1) $('img').each(function() { var t = $(this); t.attr('src', t.attr('src').replace(/(\.[a-z]+)$/i, "@2x$1")); }); window
{{#tags}}- {{label}}
{{/tags}}