How to get equal width of input and select fields

后端 未结 4 2039
梦谈多话
梦谈多话 2020-11-30 18:03

On the form, I have one select and two input fields. These elements are vertically aligned. Unfortunately, I can\'t get equal width of these elements.

Here\'s my co

4条回答
  •  情歌与酒
    2020-11-30 18:16

    Add this code in css:

     select, input[type="text"]{
          width:100%;
          box-sizing:border-box;
        }
    

提交回复
热议问题