用JavaScript获取图像的真实宽度和高度?(Safari/Chrome)
var pic = $("img")// need to remove these in of case img-element has set width and heightpic.removeAttr("width"); pic.removeAttr("height");var pic_real_width = pic.width();var pic_real_height = pic.height();
撒科打诨
长风秋雁
慕的地8271018
相关分类