如何在ASP.NET webform中禁用ctrl + P选项 [英] How to disable ctrl + P option in ASP.NET webform
本文介绍了如何在ASP.NET webform中禁用ctrl + P选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的项目中禁用Ctrl + P.我只是不要弹出打印屏幕。
请帮忙。
提前致谢。
我的尝试:
我尝试过使用CSS,但它会清除打印屏幕中的内容,我想阻止打印按钮。
I want disable Ctrl + P in my project. I just don't to popup print screen.
Please help.
Thanks in advance.
What I have tried:
I have tried the same using CSS, but it clears contents in print screen and I want block the print button.
推荐答案
一个简单的谷歌搜索,例如: jquery - 如何在JavaScript中监听Ctrl-P键? - 堆栈溢出 [ ^ ]
A simple google search, for example : jquery - How to listen for Ctrl-P key press in JavaScript? - Stack Overflow[^]
您不能阻止人们打印您的页面。
You can't stop people printing your page.
这篇关于如何在ASP.NET webform中禁用ctrl + P选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文