寬度:document . document element . client width
高度:document . document element . client height
在Chrome和IE8中測試正確,其余未測試。