Javascript screen size detector and shows an image -
how can javascript text this: need when visit website phone, image apears, but, if i'm watching computer, image hidden. thanks
you can have try using css:
#yourimage { display: none; } @media screen , (min-device-width : 320px) , (max-device-width : 480px) { #yourimage { display: inline; }
this page lists more media queries: http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
Comments
Post a Comment