Width of input type=text element

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

How come when I do this:


4条回答
  •  情书的邮戳
    2020-12-31 04:09

    I think you are forgetting about the border. Having a one-pixel-wide border on the Div will take away two pixels of total length. Therefore it will appear as though the div is two pixels shorter than it actually is.

提交回复
热议问题