通过CSS禁用页面模块的复制和粘贴功能

样式代码: 
-moz-user-select: none; 
-webkit-user-select: none; 
-ms-user-select: none; 
-khtml-user-select: none; 
user-select: none; 

 

或设置属性,通过js控制:

oncontextmenu='return false'  
ondragstart='return false'   
onselectstart ='return false'   
onselect='document.selection.empty()'   
oncopy='document.selection.empty()'   
onbeforecopy='return false'   
onmouseup='document.selection.empty()'  

 

你可能感兴趣的:(通过CSS禁用页面模块的复制和粘贴功能)