用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
随时随地看视频慕课网APP
相关分类