Solution:
Directly in the CSS file to add the following code, you can implement the mobile phone-side Prohibit paste copy function:
*{ -webkit-touch-callout:none; /* System default menu is disabled * /-webkit-user-select:none;/*webkit browser * /-khtml-user-select:none;/* Early browser * /- moz-user-select:none;/* Firefox */ -ms-user-select:none;/*ie10*/ User-select:none;}
After adding this code, there will be a problem on iOS, this time you will find that the input box is unable to enter the content, the cause is-webkit-user-select:none; caused by this attribute.
The workaround is to set the properties of input in the CSS file as follows:
input { -webkit-user-select:auto;/*webkit browser */}
In this way, if there is any wrong place please the great God, pointing out, learning from each other, progress with each other!
Page long press paste copy disabled