Created
August 28, 2019 06:25
-
-
Save ysm-dev/04f0640910db7822dc4a6def5ac9e80c to your computer and use it in GitHub Desktop.
Markdium-π« μν° ν¨ν΄μΌλ‘μμ CSS background-image μμ±
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
<picture> | |
<source | |
srcset=" | |
/some/_1170x658_crop_center-center/man-with-a-dog.webp 1170w, | |
/some/_970x545_crop_center-center/man-with-a-dog.webp 970w, | |
/some/_750x562_crop_center-center/man-with-a-dog.webp 750w, | |
/some/_320x240_crop_center-center/man-with-a-dog.webp 320w | |
" | |
sizes="100vw" | |
type="image/webp" | |
/> | |
<source | |
srcset=" | |
/some/_1170x658_crop_center-center/man-with-a-dog.jpg 1170w, | |
/some/_970x545_crop_center-center/man-with-a-dog.jpg 970w, | |
/some/_750x562_crop_center-center/man-with-a-dog.jpg 750w, | |
/some/_320x240_crop_center-center/man-with-a-dog.jpg 320w | |
" | |
sizes="100vw" | |
/> | |
<img | |
src="/some/man-with-a-dog-placeholder.jpg" | |
alt="Man with a dog" | |
style="object-fit: cover;" | |
loading="lazy" | |
/> | |
</picture> | |
<!-- The final way --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment