I am creating a photo gallery using jquery. I am taking and resizing the images on load to create thumbnails. I want to get the original value of the image's size so that later on I can take it back to its original size. Anyone know how to do this? I have the following code:
obj.find("img").each(function(){
});
This loops through all the images within the container div. I then tried to do:
$(this).width(); //didnt work
this.width; //didnt work
any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…