JQuery------鼠标双击时,不选中div里面的文字

如图:(去掉选中文字的蓝色背景色)

代码:

//方法一:
<
div class="test" onselectstart="return false" >文字</div>
//方法二: .test{ -moz-user-select:none; -webkit-user-select: none; -ms-user-select: none; }
原文地址:https://www.cnblogs.com/tianhengblogs/p/6374070.html