Disable “save image” in iOS web application

前端 未结 4 665
南旧
南旧 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:59

    I believe in this case pointer-events is your friend. You can simply add:

    
    

    And you should be good to go.

提交回复
热议问题