在 Android 浏览器上禁用图像下载
如何禁用 Android 浏览器上的功能,用户可以按住图像并弹出“保存图像”弹出对话框。
对于ios设备,-webkit-touch-callout:none;
有效,但这似乎对android浏览器没有影响
how do I disable the functionality on Android browsers where a user can press and hold and image and bring up a "save image" popup dialog.
for ios devices, -webkit-touch-callout:none;
works, but this seems to have no effect on android browsers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为调用 event.preventDefault() 的单击事件附加一个事件处理程序。至少当我使用 ICS 的默认网络浏览器、chrome beta 和 opera mobile 时,这对我来说确实有效。
attach an event handler for the click event which calls event.preventDefault(). At least this did work for me when using ICS´ default web browser, chrome beta and opera mobile.