var DivID2= document.createElement("<div id='divid2' style='display:inline;width:100%;height:500px' >");
document.getElementById(DivID1).appendChild(DivID2);DivID1有offsetWidth=1000,offsetHight=500;DivID2,加入后,这两个值都为0;但奇怪的是,我在另外一个界面执行的时候同意的代码的时候,却有数值;奇怪?能帮忙告诉我,这种情况下,DivID2产生offsetWidth和offsetHight的机制吗?非常感谢和这个人的问题很像
http://topic.csdn.net/t/20040809/09/3255066.html
但还是没有答案