火狐用样式 :-moz-user-select:none;

其他的浏览器用:onselectstart="return false"(直接加在需要作用的标签)

eg:  

<div onselectstart="return false" style="-moz-user-select:none;">屏蔽双击选中文字的区域</div>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2022-01-14
  • 2021-10-09
  • 2021-12-06
  • 2021-11-17
  • 2021-07-04
猜你喜欢
  • 2022-01-03
  • 2021-08-06
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-11-13
  • 2022-01-18
相关资源
相似解决方案