Firefox 4 : Is there a way to remove the red border in a required form input?

后端 未结 7 552
一整个雨季
一整个雨季 2020-12-04 16:24

When required is defined in a form field, Firefox 4 automatically shows a red border to this element, even BEFORE the user hits the submit button.



        
相关标签:
7条回答
  • 2020-12-04 17:18

    Here is a very easy solution that worked for me. I basically changed the ugly red into a very nice blue, which is the standard color for non-required fields, and a web convention:

    :required {
        border-color: rgba(82, 168, 236, 0.8);
    }
    
    0 讨论(0)
提交回复
热议问题