明德读后感1000字汇集(59)
2022-07-07 来源:百合文库
=860)
twidth = (860 / 4 * 0.96);
var theight = (twidth / parseInt(tsize.split("x")[0])) * parseInt(tsize.split("x")[1]);
for (i = 0; i < tplist.length; i++) {
if (tplist[i].className == "tp_list") {
var timgs = tplist[i].getElementsByTagName("img");
for (n = 0; n < timgs.length; n++) {
timgs[n].style.height = theight.toString() + "px";
}
}
}
}
//setthumbsize();
window.onresize = function () {
// setthumbsize();
}