简体   繁体   中英

Hide Input Focus in Chrome / Safari

I have a web application that uses input fields. When a user puts the cursor in one of those fields, the field has a yellow or blue outline. IE works as intended. Is there a way to hide this focus style?

Thank you!

#inputFieldId:focus, #inputFieldId:active {
    outline: none !important;
}

使用以下CSS样式:

outline: 0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM