设置 HTML网页内容设置不能复制

您所在的位置:网站首页 网页不允许复制的文字怎么复制 设置 HTML网页内容设置不能复制

设置 HTML网页内容设置不能复制

#设置 HTML网页内容设置不能复制| 来源: 网络整理| 查看: 265

Body  里面 加上这个就不能复制了

οnmοusemοve=HideMenu()        隐藏菜单

oncontextmenu                            右击鼠标时执行

ondragstart                                   用户开始拖动

onselectstart                                 onselect    文本被选中时发生

oncopy                                          拷贝文本时

onbeforecopy                                禁止复制

onmouseup                                   用户鼠标按键被松开时执行

 

设置某一块div不能粘贴

style="-webkit-user-select:none;

-moz-user-select:none;

-ms-user-select:none;

user-select:none;"

 

 

js方法

document.οncοntextmenu=new Function("event.returnValue=false");

document.onselectstart=new Function("event.returnValue=false");

 



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3