我想使用javascript window.print()进行打印。在打印窗口的底部有一个空白区域。我想清除这个空白。
$(document).on('click', '#btnPrint', function(e){
var setting = "width=650, height=650";
var objWin = window.open('','print',setting);
var text = "";
for(var i = 0 ; i < 100 ; i++){
text += "123456789<br>";
}
objWin.document.open();
objWin.document.write(text);
objWin.focus();
objWin.document.close();
objWin.print();
objWin.close();
});[bottom blank image][1]