如何设置body内容不能复制?

通过在body标签上设置相关的属性:

<body oncontextmenu="return false" ondragstart="return false" onbeforecopy="return false" oncopy="document.selection.empty()" onselect="document.selection.empty()" onselectstart="return false">

  

posted @ 2018-11-20 10:03  心无引擎,眼无流派  阅读(317)  评论(0编辑  收藏  举报