CSS make textbox fill all available width

前端 未结 7 786
感动是毒
感动是毒 2021-02-12 09:53

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

\"Some Text\" \"Some more text\"
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-12 10:07

    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).

提交回复
热议问题