如何让网页不打印内容

有一个网页,内容需要保密,不能存盘、打印。
存盘问题已经解决,打印怎么办?
---------------------------------------------------------------

这个是MSDN的例子,只加了一句visibility: hidden;就可以了

 1<html>
 2<head>
 3<style media="PRINT">   
 4BODY { background-color:white; color:white; visibility: hidden;}   
 5</style>
 6<style media="SCREEN">   
 7BODY { background-color:black; color:white; }   
 8</style>
 9</head>
10<body>   
11This is a test.   
12</body>
13</html>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus