透明< D​​IV>以prevent单击鼠标右键,另存为鼠标右键、另存为、单击、透明

2023-09-10 14:45:09 作者:网友

从概念上讲,可以一次创建一个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