标签:io ar on div cti 代码 ad ef as
// 案例列表页左右div等高 $(".case-list-cont img").each(function(idx,ele){ if (ele.complete==true) { var rightAdvHeight = $(".case-list-cont").find(".right-div").height(); var leftAdvHeight = $(".case-list-cont").find(".small-adv").height(); var leftMidDivHeight = $(".case-list-cont").find(".left-mid-div").height(); var leftMoreHeight = rightAdvHeight-leftAdvHeight-leftMidDivHeight; $(".case-list-cont").find(".left-box").find(".link").height(leftMoreHeight); $(".case-list-cont").find(".left-box").find(".title").css("paddingTop",leftMoreHeight/2-20); } });
在FF,CHROME下判断img是否执行完毕,在IE下需要另外的判断
标签:io ar on div cti 代码 ad ef as
原文地址:http://my.oschina.net/u/946060/blog/356122