How to set the height of an input (text) field in CSS?

后端 未结 6 1923
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 19:29

Sorry for this question but I can\'t seem to find an answer anywhere. I have CSS code that should set the height of my text box. I am using VS2010 Express for Windows phone,

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 19:46

    You should use font-size for controlling the height, it is widely supported amongst browsers. And in order to add spacing, you should use padding. Forexample,

    .inputField{
      font-size: 30px;
      padding-top: 10px;
      padding-bottom: 10px;
    }
    

提交回复
热议问题