I am some element create by code,
var o=document.createElement('div');
document.body.appendChild(o);

If I set
o.style.width    or    o.style.height
before setting o.style.position, position does not work!!!!!!!

o.style.width='auto';
o.style.position='absolute';    # It is not working!!!!!
o.style.left="100px";
o.style.top="100px";

But, if the set position first,
o.style.position='absolute';    # Everything all right
o.style.width='auto';
o.style.left="100px";
o.style.top="100px";


-- 
Dennis
======
Homepage(chinese)
    http://hkdennis2k.virtualave.net


Reply via email to