* {
/* 阻止双指缩放、滚动等功能 */
touch-action: none;
/* 阻止ios下点击区域变暗 */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
/* 在iOS的Safari浏览器中,禁止长按唤起系统菜单 */
-webkit-touch-callout: none;
}
:not(input) {
/* 阻止长按选中文本 (在IOS中可能会导致input框无法输入文字)*/
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* 防止长按保存 */
img {
pointer-events: none;
}
//阻止微信web中下拉
document.body.addEventListener('touchmove', function (e) {
e.preventDefault()
}, { passive: false })