本文介绍了直接打印,无需预览/对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有什么方法可以直接打印内容,方法是在没有预览或打印对话框的情况下单击一个按钮?我的代码
Is there any way to print a content Directly by prassing a single button without preview or print dialog box ? my code
<head>
<style type="text/css">
#printable { display: none; }
@media print
{
#non-printable { display: none; }
#printable { display: block; }
}
</style>
</head>
<body>
<div id="non-printable">
MY normal page contents
</div>
<div id="printable">
Printer version
</div>
</body>
推荐答案
不,您无法静默打印
这篇关于直接打印,无需预览/对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!