使用css禁止用户在拖动的时候选中文本(兼容所有主流浏览器)

来源:赵克立博客 分类: 前端开发 标签:css发布时间:2016-12-27 15:51:10最后更新:2016-12-27 15:51:10浏览:1698
版权声明:
本文为博主原创文章,转载请声明原文链接...谢谢。o_0。
更新时间:
2016-12-27 15:51:10
温馨提示:
学无止境,技术类文章有它的时效性,请留意文章更新时间,如发现内容有误请留言指出,防止别人"踩坑",我会及时更新文章

把下面样式加到想禁用选中的元素中

#stopdiv{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}



微信号:kelicom QQ群:215861553 紧急求助须知
Win32/PHP/JS/Android/Python