Any way to remove IEs black border around submit button in active forms?

后端 未结 18 1921
南笙
南笙 2020-11-28 22:57

I am implementing a design that uses custom styled submit-buttons. They are quite simply light grey buttons with a slightly darker outer border:

input.button         


        
18条回答
  •  囚心锁ツ
    2020-11-28 23:36

    The best solution I have found, is to move the border to a wrapping element, like this:

    With this CSS:

    .submit_button         { width: 150px; border: 1px solid #ccc; }
    .submit_button .button { width: 150px; border: none; }
    

    The main problem with this solution is that the button now is a block-element, and needs to be fixed-width. We could use inline-block, except that Firefox2 does not support it.

    Any better solutions are welcome.

提交回复
热议问题