【问题标题】:Phonegap and nexus s - input type=text not taking inputPhonegap 和 nexus s - 输入类型=文本不接受输入
【发布时间】:2012-08-19 14:23:22
【问题描述】:

我正在使用 Phonegap 和 jQuery mobile 构建应用程序...

在我的index.html 页面上,我有一个anchor 标签,它打开另一个页面为dialog

<a href="passcode.html" data-rel="dialog" data-transition="pop">

而我的passcode.html文件是这样的

<!DOCTYPE html> 
<html> 
    <head> 
        <title>Page Title</title> 
        <meta name="viewport" content="width=device-width, initial-scale=1"> 
        <link rel="stylesheet" href="styles/jquery.mobile-1.1.1.min.css" />
        <script src="js/jquery-1.7.1.min.js"></script>
        <script src="js/jquery.mobile-1.1.1.min.js"></script>


    </head>

    <body> 
        <div idata-role="dialog">

            <div data-role="header" data-theme="d">
                <h1>Enter Passcode</h1>
            </div>

            <div data-role="content" data-theme="c">
                <input type="password"/>
                <br/>
                <input type="button" value ="Access Cards"/>
            </div>
        </div>
    </body>
</html>

当我点击第一个anchor 时,会弹出此对话框。 现在的问题是 iPhone iPad Android Simulator 上一切正常 但是当我点击Nexus S 上的文本输入时,键盘会弹出,但是当我尝试输入时,inout 字段中没有显示任何内容。

光标已显示,表示已聚焦。键盘也显示。但是输入字段没有被输入。

这是屏幕截图...有人遇到过类似的问题吗?

【问题讨论】:

    标签: android jquery-mobile cordova nexus-s


    【解决方案1】:

    The answer to this question 表示如果您使用的是 android 4.1,则需要将您的 phonegap 项目升级到 2.0。

    【讨论】:

      猜你喜欢
      • 2014-03-11
      • 2012-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多