删除Google Chrome上的输入焦点

时间:2013-04-13 14:40:43

标签: html5 google-chrome css3

我正在使用Firefox和Google Chrome。

在Firefox上我没有问题,焦点颜色为蓝色。

firefox focus

在Chrome上,焦点为蓝色+橙色。

chrome focus

如何清除橙色?它是Chrome中的默认输入焦点。

.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, 153, 255, 0.4);
}
<td><input type="text" name="user_login" class="input" autocomplete="off"></td>

1 个答案:

答案 0 :(得分:28)

您应该可以使用

将其删除

outline: none

这是一个更新的小提琴:http://jsfiddle.net/cvv5h/1/

检查出来:How to reset / remove chrome's input highlighting / focus border?

相关问题