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

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

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

  • <i id='jdRr9'><tr id='jdRr9'><dt id='jdRr9'><q id='jdRr9'><span id='jdRr9'><b id='jdRr9'><form id='jdRr9'><ins id='jdRr9'></ins><ul id='jdRr9'></ul><sub id='jdRr9'></sub></form><legend id='jdRr9'></legend><bdo id='jdRr9'><pre id='jdRr9'><center id='jdRr9'></center></pre></bdo></b><th id='jdRr9'></th></span></q></dt></tr></i><div id='jdRr9'><tfoot id='jdRr9'></tfoot><dl id='jdRr9'><fieldset id='jdRr9'></fieldset></dl></div>
      <tfoot id='jdRr9'></tfoot>
      1. 解决弹出层打印问题

        时间:2024-10-15

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

                1. <small id='GW2ru'></small><noframes id='GW2ru'>

                  使用layui做弹出层;并且要求打印弹出层里面的内容。直接使用window.print()方法打印不出所有的页面内容,仅仅是打印了当前屏幕内容。

                  我的解决办法是 获取body中所有代码,新建一个空白页面,调用document.write()方法写入,再打印该页面,实现了正常的分页打印效果。具体代码如下:

                  function print(){
                      var bd=document.body.innerHTML;
                      w=window.open('about:blank');
                      w.document.write(bd);
                      w.print();
                      w.document.close();  
                  };    
                  上一篇:百度地图API调用如何让标注内容自动呈现在最佳视野内 下一篇:没有了

                  相关文章

                  1. <small id='zNlpj'></small><noframes id='zNlpj'>

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