透明&LT; DIV&GT;以prevent单击鼠标右键,另存为 [英] Transparent <div> to prevent right-click, Save As
本文介绍了透明&LT; DIV&GT;以prevent单击鼠标右键,另存为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从概念上讲,可以一次创建一个div,显示的内容,然后把透明的股利了内容,所以如果用户右键单击 - >另存为,保存图像等,他们将不会得到任何东西,当他们这样做?
Conceptually, could once create a div, display the content and then put a transparent div over the content so if the user right clicks -> Save As, Save Image, etc and they won't get anything when they do it?
推荐答案
是的,但它只是为草芥
<body oncontextmenu="return false;">
如果有人想复制你的内容,他们会
if someone want to copy your content they will
这篇关于透明&LT; DIV&GT;以prevent单击鼠标右键,另存为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文