Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/448.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript mozilla firefox打开子窗口中缺少垂直滚动条_Javascript_Printing_Scrollbar_Childwindow - Fatal编程技术网

Javascript mozilla firefox打开子窗口中缺少垂直滚动条

Javascript mozilla firefox打开子窗口中缺少垂直滚动条,javascript,printing,scrollbar,childwindow,Javascript,Printing,Scrollbar,Childwindow,我有一个示例,其中我在子窗口中有一个打印预览页,它被绘制为 myWindow=window.open('','','width=800,height=600','scrollbars=yes'); myWindow.innerWidth = screen.width; myWindow.innerHeight = screen.height; myWindow.screenX = 0; myWindow.screenY = 0; myWindow.docu

我有一个示例,其中我在子窗口中有一个打印预览页,它被绘制为

myWindow=window.open('','','width=800,height=600','scrollbars=yes');
    myWindow.innerWidth = screen.width;
    myWindow.innerHeight = screen.height;
    myWindow.screenX = 0;
    myWindow.screenY = 0;
    myWindow.document.write(data);
    myWindow.document.close();
    myWindow.focus();
但在Mozilla Firefox中,缺少子窗口垂直滚动条。我怎样才能解决这个问题? 另外,如何在每页打印副本中重复表格标题行(即,
Sl.No.
Value
)?我试过使用

   <style type="text/css" media="print">
        #headerRow {display:table-header-group;}
        tbody {display:table-row-group;} 
        .noprint {visibility: hidden;}
   </style>

#headerRow{display:表头组;}
tbody{display:表行组;}
.noprint{可见性:隐藏;}
但是没有用

  • 滚动条问题通过使用

    myWindow=window.open('','',宽度=800,高度=600,滚动条=yes')

  • 最初,在
    高度=600
    滚动条=yes

  • 通过使用引导样式进行徽标对齐和使用
    #headerRow{display:table header group;}
    内部
    媒体打印

  • 无论如何,表格标题在chrome浏览器中不会重复。请建议修复。

    也使用此代码,我提供了
    var strWindowFeatures=“menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes”;this.myWindow=window.open(“”,,,strWindowFeatures)