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

后端 未结 18 1883
南笙
南笙 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:32

    Right, well here's an ugly fix for you to weigh up... Stick the button in a , nuke the border on the button and give the border to the span instead.

    IE is a bit iffy about form element margins so this might not work precisely. Perhaps giving the span the same background as the button might help in that respect.

    span.button {
        background: #eee;
        border: 1px solid #ccc;
    }
    
    span.button input {
        background: #eee;
        border:0;
    }
    

    and

    
    

提交回复
热议问题