Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
srcsetのxデスクリプションを用いたサンプル
<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