日期:2014-05-16 浏览次数:20293 次
function SetSize() { document.all.wsMain.height = (Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) - 20) + 'px'; }
------解决方案--------------------
document.all.wsMain.height = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) - 20; //这样?
------解决方案--------------------
function SetSize() { var h = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) document.all.wsMain.height = h-20 或者h - 20 +'px'; //这样??? }