输入有不同的风格焦点 [英] Input has different style on focus

查看:121
本文介绍了输入有不同的风格焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发与的PhoneGap 的Andr​​oid应用程序,但我遇到了一个问题......输入有不同的背景,边框和阴影的焦点(见下文)。应当指出的是,这仅适用于输入类型密码

I am developing an Android app with Phonegap, but I ran into a problem... Input has a different background, border and shadow on focus (see below). It should be noted that this applies only to input type ‘password’.

我该如何解决这个问题?在此先感谢!

How do I fix this? Thanks in advance!

推荐答案

在Android的WebKit的浏览器似乎增加一个特殊的图标框中输入型密码焦点(我想申请这个特殊的手机屏蔽哪里最后一个字母输入仍是可见的),它忽略除 -webkit-自来水高亮双色属性的所有样式。

The Android-WebKit-Browser seems to add a special overlay box to the input type "password" on focus (I think to apply this special mobile masking where the last letter typed is still visible) which ignores all styling except the "-webkit-tap-highlight-color" property.

所以,你会倒霉的造型,这些输入框的。顺便说一句。输入框造型不工作都与HTC Sense的设备,看看这里:

So you will be out of luck styling these input boxes. Btw. styling of input boxes doesn't work at all on devices with HTC Sense, have a look here:

<一个href="http://stackoverflow.com/questions/5170028/input-elements-in-webviews-always-have-the-same-style-if-highlighted-on-htc-devic">Input-Elements在WebViews总是有相同的样式,如果突出了HTC设备

呵呵,一个例外:花式似乎工作的三星设备(至少在银河S和I5800)

Oh, one exception: the stylings seem to work on samsung devices (at least on Galaxy S and I5800)

这篇关于输入有不同的风格焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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