此时我的智慧已经结束......我无法在表单的输入区域内显示文本插入符号。这是一个基于phonegap的应用程序,至少可以说很简单。通过CSS进行聚焦我可以在文本框周围放一个黄色高光,但很明显我得到了焦点。
这就是表格的样子:
<form method = "post" autocomplete="off" action="portal.html" style = "top:20%; width:250px; position:absolute; left:480px; right:auto; margin-top:0px; margin-bottom:0px;">
<label>Username:</label>
<input type="text" name="username" maxlength="40" style = "font-size: 20px;"/>
<label>Password:</label>
<input type="password" name="password" maxlength="40" style = "font-size: 20px;"/>
<input type="submit" class="submit" style = "left:20px; position:relative; cursor:auto;"/>
</form>
答案 0 :(得分:0)
您使用的是什么设备?
不幸的是,每个设备实现WebView(大多数浏览器和基于HTML的框架,如PhoneGap使用的组件)的方式不同,并且某些小部件(如输入小部件)不会显示克拉或边框,或者会破坏其边框(HTC是最坏的罪犯)。
此外,您是否有任何CSS样式规则附加到您的输入元素?如果是这样,请删除它们,因为它们也可能隐藏了克拉。