开发者

How do you remove the default outline around input elements?

开发者 https://www.devze.com 2023-03-05 12:39 出处:网络
I would like know if is possible disable "focus" which is set by default browser in input elements?

I would like know if is possible disable "focus" which is set by default browser in input elements?

Update

When an input element is in focus, the browser adds a border (typically blue) around it. This is breaking my layout. So I wonder if you can d开发者_开发问答isable it.


Set outline:0; on those elements.


Add this in your CSS:

input:focus {
    outline:none;
}


This

how to remove the default focus on submit button in HTML form?

0

精彩评论

暂无评论...
验证码 换一张
取 消