Width of input type=text element

前端 未结 4 1044
名媛妹妹
名媛妹妹 2020-12-31 04:00

How come when I do this:


4条回答
  •  南笙
    南笙 (楼主)
    2020-12-31 04:31

    I believe that is just how the browser renders their standard input. If you set a border on the input:

    
    

    Then both are the same width, at least in FF.

提交回复
热议问题