简体   繁体   中英

Direct print without preview/dialog box

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>

不,您不能“安静地”打印

A list of silent printing technologies are available here, which tend to involve cloud-enabled printers or client-side/server-side middle-ware. Alternative to Jzebra/QZ Java Raw Print Plugin after NPAPI being dropped on Chrome Browser

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM