[jQuery] Re: How to get sum of children element's width

2009-01-17 Thread David .Wu
yup, that's right. On 1月18日, 上午6時49分, MorningZ wrote: > One problem is you have to wait for all the images to actually be > loaded (something that is not guarenteed inside document.ready > > so switch > > $(function() > > to > > $(window).load(function() > > and you'll get the results > > On Jan

[jQuery] Re: How to get sum of children element's width

2009-01-17 Thread MorningZ
One problem is you have to wait for all the images to actually be loaded (something that is not guarenteed inside document.ready so switch $(function() to $(window).load(function() and you'll get the results On Jan 17, 3:27 pm, "David .Wu" wrote: > This is the way I got the size now, is the

[jQuery] Re: How to get sum of children element's width

2009-01-17 Thread Ricardo Tomasi
Can't you get the width of the parent div? (If it has width:auto) Otherwise the way you're doing it is just fine. On Jan 17, 6:27 pm, "David .Wu" wrote: > This is the way I got the size now, is there any function can do the > same thing? > > Html code > >