jQuery(function() {
var contentHeight = jQuery("#left-content-space").height();
alert(contentHeight);
jQuery("#status-feed").slimScroll({
height : contentHeight,
color : "#D1D7D7",
position: "left"
});
});
我用了no-conflict模式。。所以变成jQuery而不是$。。
主要问题在于。。HTML里面的left-content-space的div框内有多张图片。图片将会撑大这个div框。div框在图片读取完成的时候有550px的高度,在图片没读完的时候是220px的高度。。请问有没有什么办法等图片读取完后再获得div的高度呐?
var contentHeight = jQuery("#left-content-space").height();
alert(contentHeight);
jQuery("#status-feed").slimScroll({
height : contentHeight,
color : "#D1D7D7",
position: "left"
});
});
我用了no-conflict模式。。所以变成jQuery而不是$。。
主要问题在于。。HTML里面的left-content-space的div框内有多张图片。图片将会撑大这个div框。div框在图片读取完成的时候有550px的高度,在图片没读完的时候是220px的高度。。请问有没有什么办法等图片读取完后再获得div的高度呐?