using position:absolute to set an inputs width

后端 未结 4 459
没有蜡笔的小新
没有蜡笔的小新 2021-01-11 12:21

A simple yet annoying one - I am tryign to set an input[type=text] width by using absolute positioning (ie right:10px;left:10px) yet I cant get it to play ball.

Does

4条回答
  •  醉酒成梦
    2021-01-11 12:33

    What you are trying to do can't be done that way, as far as I know. One of the values (left or right) should suffice for the position, then you just have to set width and height.

提交回复
热议问题