<a href="#" onclick="javascript:printPage();" style="display:inline-block;">Printer Friendly</a>
function printPage() {
var printWin= window.open("", "displayWindow",
"toolbar=0,menubar=0,location=0,directories=0,status=0,scrollbars=1,resizable=0,"+"
copyhistory=0,width=1000,height=700");
printWin.document.write('<div id="header"><h3 id="page-title">Print Page Title</h3> ' +
'<button onclick="window.print();" class="print-btn">Print</button></div>');
...
printWin.document.close();
}
点击&#34;打印机友好&#34;链接它ll fire弹出窗口。有一个&#34;打印&#34;按钮可用。通常点击它ll fire window.print()
窗口打印,但它不会触发Samsung Galaxy Tab中的任何操作。是否有任何关于是否需要更改代码的想法或建议?