How do I stop Chrome from yellowing my site's input boxes?

前端 未结 13 1476
逝去的感伤
逝去的感伤 2020-11-28 02:14

Among other text and visual aids on a form submission, post-validation, I\'m coloring my input boxes red to signify the interactive area needing attention.

On Chrome

相关标签:
13条回答
  • 2020-11-28 03:00
    input:focus { outline:none; }
    

    That worked great for me but more than likely to keep things uniform on your site your going to want to also include this in your CSS for textareas:

    textarea:focus { outline:none; }
    

    Also it may seem obvious to most but for beginners you can also set it to a color as such:

    input:focus { outline:#HEXCOD SOLID 2px ; }
    
    0 讨论(0)
提交回复
热议问题