类型:错误
平台: 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 解决方案是什么?
[contenteditable] {
-webkit-user-select: text;
user-select: text;
}
感谢您的问题! 此问题已被锁定,以防止发表与原始问题无关的评论。 如果使用最新版本的 Ionic 仍然存在问题,请创建一个新问题并确保模板已完整填写。
最有用的评论
@Nick-The-Uncharted 解决方案是什么?