if(thisfile == '/gongchenganli/20131122/428.html'){
$('.panel img').each(function(i){
var src = $(this).attr("src");
var img = new Image();
img.src = src;
if(img.onload){
tht = $(this).height();
if(tht < 460){
$(this).css({'margin-top':(460-tht)/2+'px'})
}
}
})
/gongchenganli/20131122/428.html 如果要改成任意目录 任意文件名 该怎么写
$('.panel img').each(function(i){
var src = $(this).attr("src");
var img = new Image();
img.src = src;
if(img.onload){
tht = $(this).height();
if(tht < 460){
$(this).css({'margin-top':(460-tht)/2+'px'})
}
}
})
/gongchenganli/20131122/428.html 如果要改成任意目录 任意文件名 该怎么写