結果爲什麽是w=370,h=8?
<!DOCTYPE HTML> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <script type="text/javascript"> var w= document.documentElement.offsetWidth||document.body.offsetWidth; var h= document.documentElement.offsetHeight||document.body.offsetHeight; document.write(w,"*",h); </script> </body> </html>