CSS: Submit button looks smaller than text input and textarea

后端 未结 5 1915
广开言路
广开言路 2021-01-02 12:07

I just noticed this strange rendering of a very simple form.

Here\'s my markup/CSS: http://jsfiddle.net/a9PLM/

As you can see, text fields and the button sha

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-02 12:28

    I think this is a browser rendering issue... with buttons being displayed differently than text inputs.

    To fix, add this to your css

    form input[type="submit"]{
        width:273px;
    }
    

    Example: http://jsfiddle.net/jasongennaro/a9PLM/1/

提交回复
热议问题