如何在右键单击时禁用“将图像另存为”选项? [英] How to disable 'save image as' option on right click?
本文介绍了如何在右键单击时禁用“将图像另存为”选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想阻止用户右键点击我网站上的图片并保存。
我知道有很多解决办法,但我仍然需要这样做。
I want to prevent users from right-clicking on image on my site and saving them. I know there are many work-around for this, but I still need to do it.
任何帮助?
此外,该网站还具有此功能 - http://finsix.com/dart/ #section-colors
Also, this site has this feature - http://finsix.com/dart/#section-colors
它可以是html,javascript,jquery。任何解决方案都可以。
It can be html, javascript, jquery. Any solution will do.
推荐答案
使用图像作为div元素的背景图像,这样可以保持心胸狭窄的人远离保存;)
Use the image as a background-image of a div element, This will keep the easy minded people away from saving it ;)
这篇关于如何在右键单击时禁用“将图像另存为”选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文