输入在焦点上有不同的风格 [英] Input has different style on focus
问题描述
我正在使用
< a href =https://i.stack.imgur.com/pDcx3.png =nofollow noreferrer>
如何我修复这个?提前感谢!
Android-WebKit-Browser似乎为输入类型password添加了特殊的重叠框(除了 -webkit-tap-highlight-color
属性之外,忽略所有样式)。
所以你会失去运气这些输入框。 Btw。输入框的样式在使用HTC Sense的设备上根本无法工作,请看这里:
如果在HTC设备上高亮显示,WebViews中的输入元素总是具有相同的样式
哦,一个例外:样式似乎适用于三星设备(至少在Galaxy S和I5800上)
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!
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.
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:
Input-Elements in WebViews always have the same style if highlighted on HTC Devices
Oh, one exception: the stylings seem to work on samsung devices (at least on Galaxy S and I5800)
这篇关于输入在焦点上有不同的风格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!