在移动端页面中,系统默认能常按选中区域
现在因为交互操作的需要,我想取消这个功能,应该怎操作?
解决方案
法一:
html { -webkit-user-select: none;}
法二:
div { pointer-events: none;}
法三:
window.ontouchstart = function(e) { e.preventDefault(); };
在移动端页面中,系统默认能常按选中区域
现在因为交互操作的需要,我想取消这个功能,应该怎操作?
法一:
html { -webkit-user-select: none;}
法二:
div { pointer-events: none;}
法三:
window.ontouchstart = function(e) { e.preventDefault(); };