我不想要打印按钮在打印时在硬拷贝。
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<p>
This is just a paragraph fellas. I do not want the print button in the hard copy.
</p>
<input type="button" value="print" onclick="window.print()" />
</body>
</html>此外,如果有网站解释如何正确使用打印某一页某一节的硬拷贝,也请提供参考。谢谢。
发布于 2017-01-19 12:27:47
隐藏打印button
this.style.display='none';
在印刷之前。
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<p>
This is just a paragraph fellas. I do not want the print button in the hard copy.
</p>
<input type="button" value="print" onclick="this.style.display='none';window.print();" />
</body>
</html>
https://stackoverflow.com/questions/41741759
复制相似问题