屏蔽很难实现,但可以实现点击打印时什么也不打印!只需要设定样式单即可
media Property--------------------------------------------------------------------------------Sets or retrieves the media type. SyntaxHTML <ELEMENT MEDIA = sType... >
Scripting object.media [ = sType ] Possible ValuessType :
String that specifies or receives one of the following values:
screen :
Output is intended for computer screens.
print :
Output is intended for printed material and for on-screen documents viewed in Print Preview mode.
all :
Default. Applies to all devices.
The property is read/write. The property has a default value of all.
media Property--------------------------------------------------------------------------------Sets or retrieves the media type. SyntaxHTML <ELEMENT MEDIA = sType... >
Scripting object.media [ = sType ] Possible ValuessType :
String that specifies or receives one of the following values:
screen :
Output is intended for computer screens.
print :
Output is intended for printed material and for on-screen documents viewed in Print Preview mode.
all :
Default. Applies to all devices.
The property is read/write. The property has a default value of all.
解决方案 »
- 为什么没有效果啊?帮忙分析下
- 一个js编辑功能的疑惑(超简单的问题)
- 关于window.showModalDialog的关闭问题,请教。
- javascript如何修改页面值?在线等....
- innerText的相关问题
- 郁闷!没人理我!干脆再发一贴!
- 一个JAVASCRIPT的问题~~~~在线等~~~很急~~~完了就结贴~~~~
- 怎样让text不提交?
- 一个chrome extension开发的疑问
- 正则表达式
- 在一个frame里使另外一个frame里的form提交该怎样写?top.mainFrame.form1.submit()怎么不行?缺少对象?
- 在点击按钮后怎么样使按钮为禁止状态?像windows里面的那样!
http://www.csdn.net/develop/read_article.asp?id=8676