{"id":914,"date":"2014-08-18T11:17:26","date_gmt":"2014-08-18T08:17:26","guid":{"rendered":"http:\/\/starhack.ru\/?p=914"},"modified":"2014-08-18T11:18:33","modified_gmt":"2014-08-18T08:18:33","slug":"retina-i-fonovye-kartinki","status":"publish","type":"post","link":"http:\/\/starhack.ru\/retina-i-fonovye-kartinki\/","title":{"rendered":"Retina \u0438 \u0444\u043e\u043d\u043e\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438"},"content":{"rendered":"

\u0412\u043e\u043f\u0440\u043e\u0441 \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u044b\u0439, \u043d\u043e \u0434\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u0440\u0435\u0442\u0438\u043d\u0443. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0435\u0446\u0435\u043f\u0442 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c:<\/p>\n

@media only screen and (min--moz-device-pixel-ratio: 2),\r\nonly screen and (-o-min-device-pixel-ratio: 2\/1),\r\nonly screen and (-webkit-min-device-pixel-ratio: 2),\r\nonly screen and (min-device-pixel-ratio: 2) {\r\n    .class {\r\n        background-image: url(retina_image);\r\n    }\r\n}\r\n<\/code><\/pre>\n

\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u044f \u043d\u0435 \u0431\u044b\u043b \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u0435\u043d, \u0447\u0438\u0442\u0430\u044f \u044d\u0442\u043e\u0442 \u0440\u0435\u0446\u0435\u043f\u0442. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0445\u043d\u0443\u0442\u044c \u0440\u0435\u0442\u0438\u043d\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0441 \u0443\u0434\u0432\u043e\u0435\u043d\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 background-size<\/strong>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a:<\/p>\n

@media only screen and (min--moz-device-pixel-ratio: 2),\r\nonly screen and (-o-min-device-pixel-ratio: 2\/1),\r\nonly screen and (-webkit-min-device-pixel-ratio: 2),\r\nonly screen and (min-device-pixel-ratio: 2) {\r\n    .class {\r\n        background-image: url(retina_image);\r\n        background-size: contain;\r\n    }\r\n}\r\n<\/code><\/pre>\n

\u041c\u043d\u0435 \u044d\u0442\u043e\u0433\u043e \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. \u041d\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u044f\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u043e\u0434 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043d\u0443\u0434\u0435\u043d \u044d\u0442\u043e\u0442 \u0444\u043e\u043d. <\/p>\n

background-size: 100px 100px;\r\n<\/code><\/pre>\n

\u041a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:)<\/p>\n","protected":false},"excerpt":{"rendered":"

\u0412\u043e\u043f\u0440\u043e\u0441 \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u044b\u0439, \u043d\u043e \u0434\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043c\u043d\u0435 \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u0440\u0435\u0442\u0438\u043d\u0443. \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0440\u0435\u0446\u0435\u043f\u0442 \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c: @media only screen and (min—moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2\/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) { .class { background-image: url(retina_image); } } \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u044f \u043d\u0435 \u0431\u044b\u043b \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u0435\u043d, \u0447\u0438\u0442\u0430\u044f … \u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 Retina \u0438 \u0444\u043e\u043d\u043e\u0432\u044b\u0435 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,13],"tags":[7,76,16,17],"_links":{"self":[{"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/posts\/914"}],"collection":[{"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/comments?post=914"}],"version-history":[{"count":5,"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/posts\/914\/revisions"}],"predecessor-version":[{"id":920,"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/posts\/914\/revisions\/920"}],"wp:attachment":[{"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/media?parent=914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/categories?post=914"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/starhack.ru\/wp-json\/wp\/v2\/tags?post=914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}