Ionic-framework: 错误:ios 光标在 contenteditable div 中丢失

创建于 2015-07-27  ·  3评论  ·  资料来源: ionic-team/ionic-framework

类型错误

平台ios 8 webview

我把它放在我的 css 文件中

div[contenteditable=true] {
  -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;
}

我的离子含量中有这个:

<div id='input' contenteditable=true >
    test
</div>

它在浏览器和 android 中运行良好,但在 ios 中单击此 div 时没有显示光标,尽管我可以编辑它的内容。

最有用的评论

@Nick-The-Uncharted 解决方案是什么?

所有3条评论

@Nick-The-Uncharted 解决方案是什么?

[contenteditable] {
        -webkit-user-select: text;
        user-select: text;
}

感谢您的问题! 此问题已被锁定,以防止发表与原始问题无关的评论。 如果使用最新版本的 Ionic 仍然存在问题,请创建一个新问题并确保模板已完整填写。

此页面是否有帮助?
0 / 5 - 0 等级