Alibabacloud.com offers a wide variety of articles about copy and paste android phone, easily find your copy and paste android phone information here online.
Clipboard.js provides developers with a versatile, lightweight JavaScript library that integrates a practical API, independent of Flash.
Clipboard.js Official website: https://clipboardjs.com/
Clipboard.js Download (Zip mode): Https://github.com/zenorocha/clipboard.js/archive/master.zip
Clipboard.js How to use:
First introduce JS package.
Html class= "Btn" data-clipboard-target= "#foo" > Copy
Js// Init New Cli
HTML5 will paste the copy-disabled solution to the long-pressed mobile phone page. html5 page
The solution is as follows:Directly Add the following code to the CSS file to disable copy and paste on the mobile phone:Copy XML/HTML Code to clipboard
*{
-Webkit-touch-callou
Now, many people are using the hand to search the Sogou input method. However, for mobile phone users, the duplication of sticky paste has been a very headache. Today, small make up to share mobile phone Sogou Input method copy and paste tips.
First,
Mobile Sogou Input Method How to copy and paste? Sogou Pinyin Input method is now one of the mainstream Chinese pinyin input method, the user is very extensive. For mobile phone users, copy sticky paste has been a very headache. You know what? different from the computer ope
1, as shown in the following figure we want to copy a section of the content "98 beautiful, don't forget to also give the push of a bar" this is it.
2, then we in the cell phone screen long press the text on the phone, and then will pop up "copy | forwarding" We click Copy
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;/*i
Recently, some projects have been used to monitor user replication. The cut operation.JavaScript native has some events: Copy, paste, cut,These events can function as target elements:The element that can focus (such as contentEditable the content can be edited or the element that can be selected), or1234 5 6 7Use the methods in jquery to listen for the user's cut,
Recently, I made a small project of cutting graphs.The main content is the promotion of the page, there will be beautiful pictures and numbers:)Click on the button, will be copied to the Clipboard, go inside paste search:), lazy people will do a series of complex operations, not optimisticFirst, Baidu a bit, fancy Clipboard library, pure JS compatible mobile phone side, good excitement:)Clibboard GitHub add
HTML5 will disable the copy (solution) for Long-pressed mobile phone pages. html5 Solution
Solution:
Directly Add the following code to the CSS file to disable copy and paste on the mobile phone:
*{-Webkit-touch-callout: none;/* the default menu of the system is disabled
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.