I have a situation where I can not know the size of the image (limited cms limit ...)
I need to figure out how to show a retinal level image, and I want to do this without using javascript (if possible).
I used:
@media only screen and (-webkit-min-device-pixel-ratio: 2) {}
but it only helped me with elements that have background images. Since this image cannot be background (since I do not know the size ...), what is the way to understand this?
I have logo.pngand logo2x.png, and my applicable markup looks something like this:
<h1 id="logo">
<a href="/">
<img src="images/logo.png">
</a>
</h1>
javascript? css - webkit (ios/iphone ). logo.png , logo2x.png 2.