js
全局
document.body.onselectstart = document.body.ondrag = function(){
return false;
}
css
元素样式
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none; user-select:none;
js
全局
document.body.onselectstart = document.body.ondrag = function(){
return false;
}
css
元素样式
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none; user-select:none;