禁止用户长按选中

.detailAbstract  p{
   -webkit-touch-callout:none;
  -webkit-user-select:none;
  -khtml-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
  -o-user-select:none; 
  pointer-events: none;
}

不要给整个页面加限制,除非你的页面不允许用户除了滑动无任何操作,不然整个页面你都无法操作(点击等)

建议在你需要加限制的段落加上此css

原文地址:https://www.cnblogs.com/SunShineM/p/7692896.html