How to edit the size of the submit button on a form?

后端 未结 10 874
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 05:13

Hi I don\'t want an image for my submit button so I have gone with the default submit button but I want to edit its width and height. How do I do that?



        
10条回答
  •  无人及你
    2020-12-24 05:51

    That's easy! First, give your button an id such as Then, for height, and width, use CSS code:

    .myButton {
        width: 100px;
        height: 100px;
    }
    

    You could also do this CSS:

    input[type="button"] {
        width: 100px;
        height: 100px;
    }
    

    But that would affect all the buttons on the Page.

    Working example - JSfiddle

提交回复
热议问题