如何重置/删除chrome的输入突出显示/焦点边框? [英] How to reset / remove chrome's input highlighting / focus border?

查看:124
本文介绍了如何重置/删除chrome的输入突出显示/焦点边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到chrome在:focus上放了一个较厚的边框。但它在我的情况下,我使用border-radius也。有没有反正要删除呢?

i see that chrome puts a thicker border on :focus. but it kind of look off in my case where i use border-radius also. is there anyway to remove that?

推荐答案

您应该可以使用

outline: none;

但是请记住这对可用性可能有害:焦点,当你使用 Tab 键遍历所有表单的元素时,它会吸引你 - 你应该反映某个元素的焦点。

but keep in mind this is potentially bad for usability: It will be hard to tell whether an element is focused, which can suck when you walk through all a form's elements using the Tab key - you should reflect somehow when an element is focused.

这篇关于如何重置/删除chrome的输入突出显示/焦点边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆