-
-
Save dongyuwei/90dbc36cc946cd1b5632 to your computer and use it in GitHub Desktop.
Revisions
-
necolas revised this gist
May 19, 2011 . 1 changed file with 0 additions and 32 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,32 +0,0 @@ -
necolas revised this gist
May 18, 2011 . 2 changed files with 6 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 @@ -6,6 +6,9 @@ <style> /* Play nice with existing requirements for Responsive Images polyfill */ /* Doesn't stop original source image being downloaded too */ @media (min-device-width:600px) { img[src*=".r."] { 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 @@ -4,6 +4,9 @@ <meta charset="utf-8"> <title>CSS responsive images</title> <style> /* Doesn't stop original source image being downloaded too */ @media (min-device-width:600px) { img[data-src-600px] { content: attr(data-src-600px, url); -
necolas revised this gist
May 18, 2011 . 1 changed file with 2 additions and 2 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 @@ -5,13 +5,13 @@ <title>CSS responsive images</title> <style> @media (min-device-width:600px) { img[data-src-600px] { content: attr(data-src-600px, url); } } @media (min-device-width:800px) { img[data-src-800px] { content: attr(data-src-800px, url); } } -
necolas revised this gist
May 18, 2011 . 2 changed files with 4 additions and 4 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 @@ -7,13 +7,13 @@ /* Play nice with existing requirements for Responsive Images polyfill */ @media (min-device-width:600px) { img[src*=".r."] { content: attr(data-src-600px, url); } } @media (min-device-width:800px) { img[src*=".r."] { content: attr(data-src-800px, url); } 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 @@ -4,13 +4,13 @@ <meta charset="utf-8"> <title>CSS responsive images</title> <style> @media (min-device-width:600px) { img { content: attr(data-src-600px, url); } } @media (min-device-width:800px) { img { content: attr(data-src-800px, url); } -
necolas revised this gist
May 18, 2011 . 2 changed files with 4 additions and 4 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 @@ -7,13 +7,13 @@ /* Play nice with existing requirements for Responsive Images polyfill */ @media all and (min-device-width:600px) { img[src*=".r."] { content: attr(data-src-600px, url); } } @media all and (min-device-width:800px) { img[src*=".r."] { content: attr(data-src-800px, url); } 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 @@ -4,13 +4,13 @@ <meta charset="utf-8"> <title>CSS responsive images</title> <style> @media all and (min-device-width:600px) { img { content: attr(data-src-600px, url); } } @media all and (min-device-width:800px) { img { content: attr(data-src-800px, url); } -
necolas revised this gist
May 18, 2011 . 1 changed file with 2 additions and 2 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 @@ -19,8 +19,8 @@ </head> <body> <img src="image.jpg" data-src-600px="image-600px.jpg" data-src-800px="image-800px.jpg" alt=""> </body> </html> -
necolas revised this gist
May 18, 2011 . 1 changed file with 29 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,29 @@ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS responsive images</title> <style> /* Play nice with existing requirements for Responsive Images polyfill */ @media screen and (min-device-width:600px) { img[src*=".r."] { content: attr(data-src-600px, url); } } @media screen and (min-device-width:800px) { img[src*=".r."] { content: attr(data-src-800px, url); } } </style> </head> <body> <img src="image.r.jpg" data-src-600px="image-600px.jpg" data-src-800px="image-800px.jpg" alt=""> </body> </html> -
necolas created this gist
May 18, 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,26 @@ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CSS responsive images</title> <style> @media screen and (min-device-width:600px) { img { content: attr(data-src-600px, url); } } @media screen and (min-device-width:800px) { img { content: attr(data-src-800px, url); } } </style> </head> <body> <img src="image.jpg" data-src-600px="image-600px.jpg" data-src-800px="image-800px.jpg" alt=""> </body> </html>