这是一个创建于 4096 天前的主题,其中的信息可能已经有所发展或是发生改变。
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 如果要改成任意目录 任意文件名 该怎么写
3 条回复 • 1970-01-01 08:00:00 +08:00
![crs0910](https://cdn.v2ex.com/avatar/7952/f28e/19177_normal.png?m=1736254476) |
|
1
crs0910 2013-11-25 01:59:17 +08:00
直接去掉if不就完了
|
![acpp](https://cdn.v2ex.com/avatar/3510/9f5a/18127_normal.png?m=1348412709) |
|
2
acpp 2013-11-25 02:08:51 +08:00
|
![Glow](https://cdn.v2ex.com/avatar/3fe8/9c9f/14954_normal.png?m=1330602540) |
|
3
Glow 2013-11-27 13:32:32 +08:00
|