<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>window对象</title> <script type="text/javascript"> function Open1(){ var ace1=confirm("确认打开新网页?") if(ace1==true) {open("http://www.imooc.com","慕课网","width:600px,height:400px");} else{} } </script> </head> <body> <form> <input type="button" value="点击我,打开新窗口" onclick="Open1()" /> </form> </body> </html>
代码错误,width后面不是":"是"=",height也是
这么大
有截图吗,你怎么确定是两倍的,是不是开了缩放