<bdo id='c1JR6'></bdo><ul id='c1JR6'></ul>

      <legend id='c1JR6'><style id='c1JR6'><dir id='c1JR6'><q id='c1JR6'></q></dir></style></legend>

      <tfoot id='c1JR6'></tfoot>
    1. <small id='c1JR6'></small><noframes id='c1JR6'>

      <i id='c1JR6'><tr id='c1JR6'><dt id='c1JR6'><q id='c1JR6'><span id='c1JR6'><b id='c1JR6'><form id='c1JR6'><ins id='c1JR6'></ins><ul id='c1JR6'></ul><sub id='c1JR6'></sub></form><legend id='c1JR6'></legend><bdo id='c1JR6'><pre id='c1JR6'><center id='c1JR6'></center></pre></bdo></b><th id='c1JR6'></th></span></q></dt></tr></i><div id='c1JR6'><tfoot id='c1JR6'></tfoot><dl id='c1JR6'><fieldset id='c1JR6'></fieldset></dl></div>

      javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开

      javascript (window.open) opens maximized in all browsers but not in chrome(javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开)

      <tfoot id='Ru9N0'></tfoot>
        <bdo id='Ru9N0'></bdo><ul id='Ru9N0'></ul>
            <tbody id='Ru9N0'></tbody>
          <i id='Ru9N0'><tr id='Ru9N0'><dt id='Ru9N0'><q id='Ru9N0'><span id='Ru9N0'><b id='Ru9N0'><form id='Ru9N0'><ins id='Ru9N0'></ins><ul id='Ru9N0'></ul><sub id='Ru9N0'></sub></form><legend id='Ru9N0'></legend><bdo id='Ru9N0'><pre id='Ru9N0'><center id='Ru9N0'></center></pre></bdo></b><th id='Ru9N0'></th></span></q></dt></tr></i><div id='Ru9N0'><tfoot id='Ru9N0'></tfoot><dl id='Ru9N0'><fieldset id='Ru9N0'></fieldset></dl></div>

          <small id='Ru9N0'></small><noframes id='Ru9N0'>

        1. <legend id='Ru9N0'><style id='Ru9N0'><dir id='Ru9N0'><q id='Ru9N0'></q></dir></style></legend>

              • 本文介绍了javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用以下代码打开一个最大化的弹出窗口,我不想全屏打开它(F11),我需要它只是最大化,就像按下最小化和关闭之间的按钮一样.

                I am using the following code to open a maximized pop up window, i don't want to open it full screen (F11), I need it just maximized, exactly like pressing the button between minimize and close.

                <a  onclick="javascript:w= window.open('https://www.facebook.com/mywifemylove','_blank','channelmode =1,scrollbars=1,status=0,titlebar=0,toolbar=0,resizable=1');" href="javascript:void(0);" target="_blank">Maximized on Chrome</a>
                

                它适用于所有浏览器,但不适用于 Chrome,这是一个 jsfiddle 用于测试

                It's working fine for all browsers but not Chrome, Here is a jsfiddle for testing

                推荐答案

                除IE外,浏览器不支持JS全屏.这是故意的:

                With the exception of IE, browsers do not support going fullscreen with JS. This is intentional:

                https://developer.mozilla.org/zh-CN/docs/Web/API/window.open#FAQ

                所有浏览器厂商都在尝试使新二次元的开放用户注意到并引起用户注意的窗口以避免混淆,以避免迷惑用户."

                "All browser manufacturers try to make the opening of new secondary windows noticed by users and noticeable by users to avoid confusion, to avoid disorienting users."

                您可以手动将窗口的大小设置为屏幕大小,但您可能需要处理框架边框厚度等问题.

                You can manually set the size of the window to the screen size but you may have to deal with things like frame border thickness.

                相关的 SO 问题:如何使用Javascript打开最大化窗口?

                在最新版本的 IE、FF 或 Chrome 上最大尺寸窗口的工作代码:

                Working code for max size window on latest versions of IE, FF or Chrome:

                window.open('http://www.stackoverflow.com','_blank','height='+screen.height+', width='+screen.width);
                

                这篇关于javascript (window.open) 在所有浏览器中打开最大化,但在 chrome 中不打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Fetch multiple links inside foreach loop(在 foreach 循环中获取多个链接)
                Backbone Fetch Request is OPTIONS method(Backbone Fetch Request 是 OPTIONS 方法)
                Fetch API leaks memory in Chrome(Fetch API 在 Chrome 中泄漏内存)
                How can I download and save a file using the Fetch API? (Node.js)(如何使用 Fetch API 下载和保存文件?(Node.js))
                Send blob data to node using fetch, multer, express(使用 fetch、multer、express 将 blob 数据发送到节点)
                Sending a custom User-Agent string along with my headers (fetch)(发送自定义用户代理字符串以及我的标头(获取))
              • <i id='V0Vgm'><tr id='V0Vgm'><dt id='V0Vgm'><q id='V0Vgm'><span id='V0Vgm'><b id='V0Vgm'><form id='V0Vgm'><ins id='V0Vgm'></ins><ul id='V0Vgm'></ul><sub id='V0Vgm'></sub></form><legend id='V0Vgm'></legend><bdo id='V0Vgm'><pre id='V0Vgm'><center id='V0Vgm'></center></pre></bdo></b><th id='V0Vgm'></th></span></q></dt></tr></i><div id='V0Vgm'><tfoot id='V0Vgm'></tfoot><dl id='V0Vgm'><fieldset id='V0Vgm'></fieldset></dl></div>

                    <legend id='V0Vgm'><style id='V0Vgm'><dir id='V0Vgm'><q id='V0Vgm'></q></dir></style></legend>

                      <bdo id='V0Vgm'></bdo><ul id='V0Vgm'></ul>
                    • <tfoot id='V0Vgm'></tfoot>

                      <small id='V0Vgm'></small><noframes id='V0Vgm'>

                          <tbody id='V0Vgm'></tbody>