-
-
Save Takazudo/865619 to your computer and use it in GitHub Desktop.
Revisions
-
Takazudo revised this gist
Mar 11, 2011 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1 +1,5 @@ <!-- see http://www.modernizr.com/docs/#backgroundsize --> <script src="modernizr-1.7.min.js"></script> -
Takazudo revised this gist
Mar 11, 2011 . 2 changed files with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <script src="modernizr-1.7.min.js"></script> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,9 +8,11 @@ /* devicePixelRatio=1.5以上 */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .backgroundsize .className { background: url(test@2x.png); /* 2倍の画像 */ -webkit-background-size: 100px 100px; /* WebKit */ -moz-background-size: 100px 100px; /* moz */ -o-background-size: 100px 100px; /* opera */ background-size: 100px 100px; /* WebKit以外 */ } } -
Takazudo revised this gist
Mar 11, 2011 . 1 changed file with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ /* devicePixelRatio=1 & devicePixelRatio未対応ブラウザ */ .className { width: 100px; height: 100px; background: url(test@1x.png); /* 等倍の画像 */ } /* devicePixelRatio=1.5以上 */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .className { background: url(test@2x.png); /* 2倍の画像 */ -webkit-background-size: 100px 100px; /* WebKit */ background-size: 100px 100px; /* WebKit以外 */ } } -
Takazudo revised this gist
Mar 11, 2011 . 1 changed file with 0 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +0,0 @@ -
tacamy created this gist
Mar 11, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ /* devicePixelRatio=1 & devicePixelRatio未対応ブラウザ */ .className { width: 100px; height: 100px; background: url(test@1x.png); /* 等倍の画像 */ } /* devicePixelRatio=1.5以上 */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) { .className { background: url(test@2x.png); /* 2倍の画像 */ -webkit-background-size: 100px 100px; /* WebKit */ background-size: 100px 100px; /* WebKit以外 */ } }