电话差距问题 –
如何禁用ANDROID的默认文本复制粘贴功能以及在Phonegap应用程序中长按屏幕后出现的IOS.
我提到了How to disable the default behavior of an Anchor in jQuery Mobile (iOS),但这不是可行的解决方案.我想要config.xml文件中的代码.
谢谢.
解决方法:
**Use below code:**
<style type="text/css">
*:not(input):not(textarea) {
-webkit-user-select: none; /* disable selection/copy of UIWebView */
-webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}
</style>
**If you want disable only anchor button tag use this.**
a {-webkit-user-select: none; /* disable selection/copy of UIWebView */
-webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}