CSS make textbox fill all available width

前端 未结 7 1388
太阳男子
太阳男子 2021-02-12 09:33

I have the following \"line\" in my web page

\"Some Text\" \"Some more text\"
7条回答
  •  天涯浪人
    2021-02-12 10:18

    The only way I see it feasible is with Javascript, so you get the width of the div (in pixels), deduct the current size of the other controls and add the result as with of the input. That would require you to put the text inside a span control (so you can get its size).

提交回复
热议问题