Phone Gap issue-
如何禁用 ANDROID 以及 IOS 的默认文本复制粘贴功能,该功能在 Phonegap 应用程序中长按屏幕后出现。
我提到如何禁用 jQuery Mobile (iOS) 中锚点的默认行为 https://stackoverflow.com/questions/10714868/how-to-disable-the-default-behavior-of-an-anchor-in-jquery-mobile-ios,但这不是可行的解决方案。我想要 config.xml 文件中的代码。
Thanks.
**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 */
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)