I have an anchor link to an image file. (For a lightbox script for example).
<a href="imagefile.jpg">Click to enlarge</a>
Now, on retina devices I want the anchor link to lead to the retina version of the image (imagefile@2x.jpg). Is this even possible without any script.
For the img tag there is the srcset attribute which handle this, but what for an anchor link.
Thanks
Aucun commentaire:
Enregistrer un commentaire