当前位置:首页 > 操作系统 > Ios

如何禁用ANDROID的复制和过去文本功能以及在Phonegap应用程序中长按屏幕后出现的IOS

电话差距问题 –

如何禁用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 */
 }

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!