ie6 offsetWidth/offsetHeight无效
可采用手动获取:
offsetWidth=parseInt(node.style.width)+parseInt(node.style.paddingLeft)+parseInt(node.style.paddingRight);
offsetHeight=parseInt(node.style.height)+parseInt(node.style.paddingTop)+parseInt(node.style.paddingBottom);
如果有边框的话可以继续加上对应两边的边框。

开发js组织结构图过程中发现此问题,网上找了许久也没得到准确答案,最终在回家途中幡然醒悟。

特此公布在网上,给大家一个解决的方法。