<style media=print type="text/css"> .noprint{display:none} </style>
在打印时不显示的部分加上 class="noprint"
打印 onclick="window.print();"
2.用js定义
function printme(){ document.body.innerHTML=document.getElementByIdx('printDiv').innerHTML; window.print(); history.go(0);}
<span id="printDiv">里面为打印要显示的内容</span>
Copyright @ 2024 笨小孩做开发 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster