[英]How to remove orange outline/border from input/textarea on Android with TouchWiz
I have input styled like holo theme by CSS but on focus appears orange outline and white background. 我输入的样式类似于CSS的holo主题,但焦点出现的是橙色轮廓和白色背景。
I found solution to remove this: 我找到了解决方案以删除此问题:
textarea:focus{
-webkit-user-modify: read-write-plaintext-only;
}
But this solution causing that the text inside field is not visible while typing (except first letter). 但是此解决方案导致键入时字段内的文本不可见(首字母除外)。 Text shows up after leaving the focus.
文本在离开焦点后显示。
Another soulution like that: 这样的另一种解决方案:
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
doesn't work... 不起作用...
More solutions? 更多解决方案?
Tested on Android 4.0.1 (Samsung Galaxy SII). 已在Android 4.0.1(Samsung Galaxy SII)上测试。
To remove the outline of a textarea try with: 要删除文本区域的轮廓,请尝试:
:focus {
outline: none;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
Hope it helps! 希望能帮助到你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.