提问者:小点点

无法移除对焦上的蓝色高亮铬


当你点击搜索,有蓝色的轮廓,我尝试了任何可能的代码禁用它。 都不起作用。。。 它一直表现出来。

input:focus {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  outline-style: none !important;
  box-shadow: none !important;
  outline-color: transparent !important;
  outline-style: none !important;
  border:none !important;
  border-color: transparent !important;
}

共3个答案

匿名用户

添加此CSS

.help-center .hc-search-form:focus-within{
   border: 0 none;
   box-shadow: none;
}

匿名用户

您可以使用大纲:无; 焦点

如何移除文本/输入框周围的焦点边框(轮廓)? (铬)

使用键盘导航的人要小心,它会很有用

匿名用户

将以下内容添加到您的代码中:*{outline:none!important;}