停用iPhone“保存图片”弹出 [英] Disable iPhone "save image" popup

查看:193
本文介绍了停用iPhone“保存图片”弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图禁用保存图像dialoge在iPhone /任何iOS设备上显示。当用户在Safari中时,他们可以将手指放在图像上,他们可以将图像直接保存到手机上。是他们用javascript,jquery或css打开这个菜单的方式吗?

I am trying to disable the "save image" dialoge from showing on the iPhone/any iOS device. When a user is in Safari they can hold their finger down on an image and they can save that image directly to their phone. Is their a way to diable this menu with javascript, jquery, or css?

我已经看过其他文章,似乎没有太多的关于这个主题。我找到一个职位,但答案似乎没有工作。

I have looked around at other posts and there does not seem to be that much on this topic. I found one post but the answer did not seem to work.

我看到一个使用不可见div的方法,但如果可以使用jQuery或javascript完成,我不喜欢这样做。

I saw one method of using an invisible div but I prefer not to do this if it can be done with jQuery or javascript.

谢谢

推荐答案

您尝试过 -webkit-user-select:none; 和/或 -webkit-touch-callout:none;

这篇关于停用iPhone“保存图片”弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆