2014-03-19 144 views
0
一些输入CSS样式

发现问题,而测试登录页面在的Android ICS,的Android ICS失去焦点

它打破CSS轮廓造型和这里既是ICS和截图JBenter image description here

enter image description here

我尝试以下CSS但不未定,

input:focus, textarea:focus { 
    outline: 0; 
} 

input{ 
    -webkit-tap-highlight-color: rgba(255,255,255,0); 
} 

这里是HTML,

<input type="text" id="username" placeholder="Username" required/> 
<input type="password" id="password" placeholder="Password" style="-webkit-text-security: disc;" required/> 

如何摆脱这种情况,请查找某人我确切的修复..

回答

0

因为我发现修复,我想回答我的问题,我 添加了下面一行的输入字段,

-webkit-user-modify: read-write-plaintext-only; 

我.E,

input{ 
    -webkit-user-modify: read-write-plaintext-only; 
    -webkit-tap-highlight-color: rgba(255,255,255,0); 
} 

价:http://css-infos.net/property/-webkit-user-modify

一旦我说这个,输入区域的轮廓,即使在的Android ICS消失。谢谢