繁体   English   中英

Microsoft Edge window.open()不遵循第二个弹出窗口上的宽度高度

[英]Microsoft Edge window.open() not honoring width height on the second popup

我在Windows 10内部版本10586.122上,并且新Edge浏览器中的window.open方法未按照规范运行。

如果您使用https://msdn.microsoft.com/zh-cn/library/ms536651(v=vs.85).aspx中的示例代码,然后单击以打开一个新窗口,它将以正确的方式打开一个新窗口。宽度和高度。但是,如果我从第一个弹出窗口中打开第二个新窗口,且宽度和高度不同,它将完全忽略宽度和高度,但与第一个弹出窗口的大小相同。

例如:我有2个文件被打击

文件1:sample1.html

<!DOCTYPE html>
<html>
    <body onclick="myOpen();">
        <p>Click this page and window.open() is called.</p>
        <script>
            function myOpen() {
                window.open("Sample2.html", null, "height=200, width=400, status=yes, toolbar=no, menubar=no, location=no");
            }
        </script>
    </body>
</html>

文件2:sample2.html

<!DOCTYPE html>
<html>
    <body onclick="myOpen();">
        <p>Click this page and window.open() is called.</p>
        <script>
            function myOpen() {
                window.open("Sample1.html", null, "height=400, width=800, status=yes, toolbar=no, menubar=no, location=no");
            }
        </script>
    </body>
</html>

这似乎是MS Edge中的一个开放错误。 该错误已在此处提交: https : //connect.microsoft.com/IE/Feedback/Details/2434857希望这可以帮助您节省一些时间调查问题。 最好,马尔特

我观察到第二个子窗口未在Microsoft Edge浏览器中使用strWindowOptions 但是,当使用其他浏览器时,它可以工作。 我在此上花了很多时间,希望能有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM