我使用的是 Windows 10 预览版 Build 10130,window.open
新 Edge 浏览器中的方法未按照规范运行。
如果您使用https://msdn.microsoft.com/en-us/library/ms536651(v=vs.85).aspx中的示例代码,并单击打开一个新窗口,它将在背景,并且将完全忽略宽度和高度。
<!DOCTYPE html>
<html>
<head>
<title>window.open()</title>
<style>
html, body {
width: 100%;
height: 100%;
border: 1px solid black;
}
</style>
</head>
<body onclick="myOpen();">
<p>Click this page and window.open() is called.</p>
<script>
function myOpen() {
window.open("Sample.htm", null, "height=200, width=400, status=yes, toolbar=no, menubar=no, location=no");
}
</script>
</body>
</html>
其他人看到这个问题吗?http://jsfiddle.net/TylerH/c91hcoum/2/