use*_*202 4 android ios cordova
电话差距问题 -
如何禁用ANDROID的默认文本复制粘贴功能以及在Phonegap应用程序中长按屏幕后出现的IOS.
我提到了如何在jQuery Mobile(iOS)中禁用Anchor的默认行为,但这不是可行的解决方案.我想要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 */
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1922 次 |
| 最近记录: |