哦这样啊,就是屏蔽像我这样菜鸟技术的人就行了,,
<body onbeforeprint="hide()" onafterprint="show()">
<script>
function hide() {
document.getElementById('secretcontent').style.display = 'none';
}
function show() {
document.getElementById('secretcontent').style.display = '';
}
</script>
<span id="secretcontent">
What do you see? :-)
</span>
</body>
找了个这样的代码