CSS setting text cannot be selected by mouse

problem description

do not allow users to select text messages with the mouse

the environmental background in which the problem occurs

  1. there are places where you need to double-click, which is easy to turn into text selection, so that the click cannot be triggered.
  2. for some copywriters, they are not willing to make it easy for users to copy (novel website)
Css
Apr.13,2022

set the CSS attribute in the block that needs to be double-clicked

  

body {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
you can choose no Chinese characters

Menu