我正在使用Firefox和谷歌浏览器.
在Firefox上我没有问题,焦点颜色是蓝色.
在Chrome上,焦点为蓝橙色.
如何取出橙色?它是Chrome中的默认输入焦点.
HTML
<td><input type="text" name="user_login" class="input" autocomplete="off"></td></tr>
CSS
.input{
border:1px solid #dbdbdb;
padding:0 5px 0 5px;
height:26px;width:200px;
border-radius:3px;
font-family:"Arial Black",Gadget,sans-serif;
font-size:13px;
}
.input:focus{
border:1px solid rgba(51,153,255,0.4);
Box-shadow:0 0 5px rgba(51,0.4);
}
Demo
解决方法
你应该可以删除它
大纲:没有
这是一个更新的小提琴:http://jsfiddle.net/cvv5h/1/
看看这个:How to reset / remove chrome’s input highlighting / focus border?