请问如何禁止用户拖动选择文字或者长按选择网页文本文字?
网友回复
在包含文字的元素上增加一个类
.no-select { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }或者手机端在元素上增加
BfwOntouchstart="return false;"