Created
April 7, 2017 20:20
-
-
Save metabit-software/a29d41e475a8af250278bd10419952a5 to your computer and use it in GitHub Desktop.
Picture tag with srcset
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 characters
<picture> | |
<source media="(max-width: 767px)" class="B52a lazyloaded" alt="See What's New" sizes="(max-width: 768px) 150vw, (max-width: 960px) 960px, 960px" srcset=" | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52_mobile-768.jpg 768w, | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52_mobile-960.jpg 960w, | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52_mobile-1536.jpg 1536w, | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52_mobile-1920.jpg 1920w" /> | |
<img class="B52a lazyloaded" alt="See What's New" sizes="(max-width: 768px) 150vw, (max-width: 960px) 960px, 960px" srcset=" | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52-768.jpg 768w, | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52-960.jpg 960w, | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52-1536.jpg 1536w, | |
//cdn.schwans.com/media/images/homepage/2017/wk15-16/b52-1920.jpg 1920w" /> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment