日期:2014-05-16  浏览次数:20417 次

firefox中无法取得clientWidth和clientHeight的值
var   odyp   =   document.getElementById( 'dypopLayer ');
var   popWidth   =   odyp.clientWidth;
var   popHeight   =   odyp.clientHeight;  

在IE中,可以获得popWidth,popHeight的值,可是在firefox中就不能获取了。
该怎么办呢?

------解决方案--------------------
直接取Width和Height呢?odyp.width