is there anyone pl开发者_运维知识库ease help me its argent............ :)
You can use pure Javascript for this:
var img = document.getElementById('imageInQuestion');
var width = img.clientWidth;
var height = img.clientHeight;
Edit: (via jQuery (Although untested) )
var imgWidth = $("#imageInQuestion").width();
var imgWidth = $("#imageInQuestion").height();
I am assuming that by size, you meant dimensions, please correct me if I'm wrong.
Try this
$('#imageId').clone().removeAttr("height").attr("height");
精彩评论