Disable “save image” in iOS web application

前端 未结 4 689
南旧
南旧 2021-01-04 01:04

I want to disable the \"save image\" menu in mobile web applications that appears when you hold down a finger on an image. I tried the CSS properties:

-webki         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 01:50

    Well one thing you could do is cover the image with a transparent

    tag. This would prevent the user form "clicking" (touching) the image at all:

    Note that if you send images to the browser they can be saved. This is just a workaround, a minor annoyance for anyone who really wants the images. If you can view it, you can copy/steal it.

提交回复
热议问题