无法在 PhoneGap Ionic IOS 中复制/粘贴 [英] Can't copy / paste in PhoneGap Ionic IOS

查看:20
本文介绍了无法在 PhoneGap Ionic IOS 中复制/粘贴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PhoneGap 在 IOS 中构建一个应用程序,它几乎完成了.

I'm using PhoneGap to build an app in IOS and it is almost done.

我刚刚遇到了一个小问题.用户似乎无法在输入字段中复制/过去他的内容.

I just ran into a small problem. The user doesn't seem to be able to copy / past his content in an input field.

我正在使用

  • 科尔多瓦 3.6.3
  • 离子框架 1.2.8
  • IOS 8.1.1

推荐答案

尝试添加这个 css

   input, textarea {
        -webkit-user-select: auto !important;
        -khtml-user-select: auto !important;
        -moz-user-select: auto !important;
        -ms-user-select: auto !important;
        -o-user-select: auto !important;
        user-select: auto !important;  
  }

我认为 ionic 包含一些 css 以避免复制/粘贴,因为通常应用程序不允许您复制其内容

I suppose ionic includes some css to avoid the copy/paste as usually the apps don't allow you to copy their content

这篇关于无法在 PhoneGap Ionic IOS 中复制/粘贴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆