标签:col else bsp 页面 idt load content func real
$("#baiduContent img").each(function (i) {
var img = $(this);
var realWidth;
//var realHeight;
$("<img/>").attr("src", $(img).attr("src")).load(function () {
realWidth = this.width;
//realHeight = this.height;
if (realWidth >= 300) {
$(img).css("width", "100%").css("height", "auto");
}
//else {
//$(img).css("width", realWidth + ‘px‘).css("height", realHeight + ‘px‘);
//}
});
});
标签:col else bsp 页面 idt load content func real
原文地址:https://www.cnblogs.com/vincentzhou/p/11020521.html