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)代码>