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

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

      • <bdo id='Uz1XS'></bdo><ul id='Uz1XS'></ul>
    1. <tfoot id='Uz1XS'></tfoot>
    2. <legend id='Uz1XS'><style id='Uz1XS'><dir id='Uz1XS'><q id='Uz1XS'></q></dir></style></legend>

      1. 如何在 Google Chrome 中不带滚动条的 window.open

        时间:2023-10-01
          <tbody id='3lbqc'></tbody>
          <bdo id='3lbqc'></bdo><ul id='3lbqc'></ul>

              <tfoot id='3lbqc'></tfoot>

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

                  <small id='3lbqc'></small><noframes id='3lbqc'>

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

                  本文介绍了如何在 Google Chrome 中不带滚动条的 window.open的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  以下代码在 Firefox、IE 和 Opera 中打开 没有滚动条的新窗口.

                  The following code opens the new window without scrollbars in Firefox, IE and Opera.

                      var options = {
                          height: 300, // sets the height in pixels of the window.
                          width: 300, // sets the width in pixels of the window.
                          toolbar: 0, // determines whether a toolbar (includes the forward and back buttons) is displayed {1 (YES) or 0 (NO)}.
                          scrollbars: 0, // determines whether scrollbars appear on the window {1 (YES) or 0 (NO)}.
                          status: 0, // whether a status line appears at the bottom of the window {1 (YES) or 0 (NO)}.
                          resizable: 1, // whether the window can be resized {1 (YES) or 0 (NO)}. Can also be overloaded using resizable.
                          left: 0, // left position when the window appears.
                          top: 0, // top position when the window appears.
                          center: 0, // should we center the window? {1 (YES) or 0 (NO)}. overrides top and left
                          createnew: 0, // should we create a new window for each occurance {1 (YES) or 0 (NO)}.
                          location: 0, // determines whether the address bar is displayed {1 (YES) or 0 (NO)}.
                          menubar: 0 // determines whether the menu bar is displayed {1 (YES) or 0 (NO)}.
                      };
                  
                      var parameters = "location=" + options.location +
                                       ",menubar=" + options.menubar +
                                       ",height=" + options.height +
                                       ",width=" + options.width +
                                       ",toolbar=" + options.toolbar +
                                       ",scrollbars=" + options.scrollbars +
                                       ",status=" + options.status +
                                       ",resizable=" + options.resizable +
                                       ",left=" + options.left +
                                       ",screenX=" + options.left +
                                       ",top=" + options.top +
                                       ",screenY=" + options.top;
                  
                      // target url
                      var target = 'some url'  
                  
                      popup = window.open(target, 'popup', parameters);
                  

                  Google Chrome 中,新窗口仍然有滚动条.有什么想法让它发挥作用吗?

                  In Google Chrome the new window still has the scrollbars. Any ideas to make it work?

                  推荐答案

                  这个样式应该可以解决问题,将其添加到打开的窗口文档中:

                  This style should do the trick, add it to the opened window document:

                  
                  body{ overflow-x:hidden;overflow-y:hidden; }
                  

                  这篇关于如何在 Google Chrome 中不带滚动条的 window.open的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在不打开弹出窗口的情况下检测被阻止的弹出窗口 下一篇:Django 管理弹出功能

                  相关文章

                2. <legend id='t8rYS'><style id='t8rYS'><dir id='t8rYS'><q id='t8rYS'></q></dir></style></legend>

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

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