Created
May 18, 2017 03:50
-
-
Save AmatsukiKu/9b88fcffb7039ae82625f5e0354edab5 to your computer and use it in GitHub Desktop.
srcsetのxデスクリプションを用いたサンプル
This file contains 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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" /> | |
<style> | |
body { | |
min-width: 0; | |
text-align: center; | |
padding: 0; | |
margin: 0; | |
} | |
img { | |
min-width: 0; | |
padding: 0; | |
margin: 0; | |
height: 100px; | |
width: 100px; | |
} | |
</style> | |
</head> | |
<body> | |
<img srcset="https://dummyimage.com/200x200/000/fff&text=2x 2x, https://dummyimage.com/300x300/000/fff&text=3x 3x" src="https://dummyimage.com/100x100/000/fff&text=1x" /> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment