在<body>中添加onselectstart="return false"实现无法复制文字。

事例:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>

<body onselectstart="return false">
<h1>Hello ZhuKe</h1>
<h2>-----------Since 1988 </h2>
<h3>Hello World</h3>
<h4>Hello Girl</h4>
</body>

</html>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-06-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-10-13
  • 2021-11-08
  • 2022-12-23
相关资源
相似解决方案