How can multiple (dynamically sized) divs share 100% width?

前端 未结 3 1768
难免孤独
难免孤独 2021-01-19 16:40

I\'ve got following html structure:

3条回答
  •  不要未来只要你来
    2021-01-19 16:55

    Tables are supposed to be evil, but they seem to solve the problem. I'm still interested in a solution without javascript or tables, if anyone can find one...

    Distribute remaining space with ratio 70:30

    Some Text

    First input field uses up all remaining space, while the last box has a fixed width:

    Some Text

提交回复
热议问题