Why would jquery return 0 for an offsetHeight when firebug says it's 34?

后端 未结 5 1214
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-19 04:43

So I have a div whose content is generated at runtime it initially has no height associated with it. When it\'s generated according to firebug and from what I can alert wit

5条回答
  •  情深已故
    2020-12-19 05:22

    Loading this file with a valid IMG SRC gives 3 alert boxes of "37". Without valid IMG SRC it gives "17" on all three. What version of Jquery are you using? And which version of FireFox/IE?

    
    
    
        
    
    
        

提交回复
热议问题