/**禁用长按选中文本功能 start*/ * { -webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; } /**禁用长按选中文本功能 end*/问题一:但是这样会让ios 的input框不能聚焦
解决方案:
input{
-webkit-user-select:auto;}
问题二:如果需要长按发送语音,禁用长按之后,不能长按发送语音
解决方案:
<div class="voice-speak " ontouchstart="return false;" style="display: none" id="startRecord"><span>按住 说话</span></div>