为什么这样不行?
2 回答
<!DOCTYPE HTML> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript"> window.onload = function(){ var w= document.documentElement.offsetWidth || document.body.offsetWidth; var h = document.documentElement.offsetHeight || document.body.offsetHeight; document.write(w+'<br/>'+h); } </script> </head> <body> </body> </html> 这样写
举报
0/150
提交
取消