Microsoft Edge window.open()不符合宽度高度,并在后台打开 [英] Microsoft Edge window.open() not honoring width height, and opens in background

查看:616
本文介绍了Microsoft Edge window.open()不符合宽度高度,并在后台打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10预览Build 10130上,新Edge浏览器中的 window.open 方法不符合规范。

I'm on Windows 10 preview Build 10130, and the window.open method in the new Edge browser isn't behaving as per the specification.

如果您使用 https://msdn.microsoft.com/en-us/library/ms536651(v = vs.85).aspx ,然后点击打开一个新窗口,它将在后台打开一个新窗口,并将完全忽略宽度和高度。

If you use the example code in https://msdn.microsoft.com/en-us/library/ms536651(v=vs.85).aspx, and click to open a new window, it will open a new window in the background, and will completely ignore the width and height.

<!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/

Anyone else see this issue? http://jsfiddle.net/TylerH/c91hcoum/2/

推荐答案

现在在windows build 10162中解决了这个问题

This is now resolved in windows build 10162

这篇关于Microsoft Edge window.open()不符合宽度高度,并在后台打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆