I have an image tag:
HTML code:
<img src="image.jpg"></img>
CSS code:
img{ max-width: 100%; max-height: 100%; }
I just want to know it's height and width in pixels, if it's width and height is set to auto. How to do that in javascript?
Aucun commentaire:
Enregistrer un commentaire