【方法一:CSS3实现文本不可复制】

.content {
-moz-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
-o-user-select:none;
}
/*然而不兼容IE678*/

 

【方法二:JS实现文本不可复制】

document.getElementById('').onselectstart = document.getElementById('').oncontextmenu = function(){return false;}
// 兼容所有浏览器

 

相关文章:

  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
猜你喜欢
  • 2021-06-21
  • 2021-09-04
  • 2022-12-23
  • 2022-01-20
相关资源
相似解决方案