search

Home  >  Q&A  >  body text

How to solve the problem that HTML5 prohibits img preview?

Some Android phones open the h5 page in QQ and click Img to preview it. After previewing, long press the image to download it. Is there any way to achieve this?

不言不言2256 days ago1842

reply all(1)I'll reply

  • 不言

    不言2018-10-23 17:37:34

    If you don’t want to make major changes, you can consider adding pointer-events:none; to all img tags (of course, those with events should be filtered out); if you are not afraid of changes, just go to Canvas. If the interface is complicated, you can consider finding a UI system. Come and do it.

    reply
    0
  • Cancelreply