css:
/*阻止默认长按选中文本*/
* {
    /*ios,如果不行可以加一个透明遮罩层*/
    -webkit-touch-callout:none;
    touch-callout:none;

    /*安卓*/
    -webkit-user-select: none;
    user-select: none;
}

 

/*阻止默认点击出现阴影*/
*{  -webkit-tap-highlight-color: rgba(0,0,0,0);  -webkit-tap-highlight-color:transparent;  }

js:
//阻止默认长按出现菜单
window.ontouchstart = function(e) {
    e.preventDefault();
};

 

 







相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2021-06-17
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2022-02-11
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案