实现页面无法选中,目前大部分只是支持ie10以上,在此仅做汇总,予己方便
//IE6-9
document.body.onselectstart=document.body.οndrag=function(){
return false;}
$("body").css({
"-moz-user-select":"none", //Firefox
"-webkit-user-select":"none", //Chrome, Opera, Safari
"-ms-user-select":"none", //Ie10以上
"-khtml-user-select":"none", //早期
"-o-user-select":"none",
"user-select":"none"