Transparent
to prevent right-click, Save As

后端 未结 3 1014
一个人的身影
一个人的身影 2021-01-23 11:12

Conceptually, could once create a div, display the content and then put a transparent div over the content so if the user right clicks -> Save As, Save Image, etc and they won\'

相关标签:
3条回答
  • 2021-01-23 11:38

    Make a div which position is fixed then put transparent image.

    Example : http://jsfiddle.net/huhu/ZePMg/1/

    0 讨论(0)
  • 2021-01-23 11:57

    An empty div would still make the content below clickable. One technique sometimes used is to do a similar thing, but use a transparent gif or png which would cover the content, or to use javascript to disable the contextual menu.

    In any case, if someone wants to save the content, there's not really anything you can do to stop them.

    0 讨论(0)
  • 2021-01-23 12:00

    yes but it's just as worthless as

    <body oncontextmenu="return false;"> 
    

    if someone want to copy your content they will

    0 讨论(0)
提交回复
热议问题