This.time=setInterval(function(){? ? ? ? ? ? ? ? ? ? This.style.height=This.offsetHeight-16+"px";? ? ? ? ? ? ? ? ? ? if(This.offsetHeight<=0)? ? ? ? ? ? ? ? ? ? clearInterval(This.time);? ? ? ? ? ? ? ? },30)
為什么代碼第二行用offsetHeight而不是height
慕俠4489241
2016-07-07 14:20:02