无法在iOS的Webview中的html文本框中写入文本 [英] can't get writing text in html text box in Webview of iOS

查看:128
本文介绍了无法在iOS的Webview中的html文本框中写入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个外部页面,我在iOS应用程序的webview中调用了该页面.该页面具有用于调查的模式弹出窗口,用户需要在其中输入文本.弹出窗口打开并点击文本框后,将出现键盘,但文本不会在文本框中更新.请提出建议,因为我是iOS开发的新手.提前致谢.

I have an external page which I call in webview in iOS app. the page has modal popup for the survey in which user need to input text. once the popup opens and tap the textbox, keyboard appears but the text is not updating in the textbox. Please give suggestion as I am new to iOS development. Thanks in advance.

推荐答案

这是iOS7的错误,请尝试

This is iOS7 bug,Try this

<meta name="viewport" content="height=device-height, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densityDpi=device-dpi">

在meta标签中设置height=device-height似乎可以解决此问题.

Setting height=device-height in meta tag seems to solve this.

这篇关于无法在iOS的Webview中的html文本框中写入文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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