JS 方法:
$(document).on('touchstart',function(ev){
ev.preventDefault();
});
$('input').on('touchstart',function(ev){
ev.stopPropagation();
});
CSS方法:
* {
-webkit-touch-callout:none;
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
input {
-webkit-user-select:auto; /*webkit浏览器*/
}
其他方法:
加一个透明的absolute定位的div遮罩层在页面最上层。