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

后端 未结 6 1879
被撕碎了的回忆
被撕碎了的回忆 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:57

    Don't use height property in input field.

    Example:

    .heighttext{
        display:inline-block;
        padding:15px 10px;
        line-height:140%;
    }
    

    Always use padding and line-height css property. Its work perfect for all mobile device and all browser.

提交回复
热议问题