简体   繁体   English

在Chrome / Safari中隐藏输入焦点

[英]Hide Input Focus in Chrome / Safari

I have a web application that uses input fields. 我有一个使用输入字段的Web应用程序。 When a user puts the cursor in one of those fields, the field has a yellow or blue outline. 当用户将光标放在这些字段之一中时,该字段具有黄色或蓝色轮廓。 IE works as intended. IE可以正常工作。 Is there a way to hide this focus style? 有没有办法隐藏这种焦点样式?

Thank you! 谢谢!

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

使用以下CSS样式:

outline: 0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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