How to create a dynamic width column in Twitter Bootstrap

后端 未结 4 1401
广开言路
广开言路 2021-01-01 09:57

How do you use Twitter Bootstrap to create a table-like list structure, where some columns take as much space, as required to accommodate the widest element of that column,

4条回答
  •  死守一世寂寞
    2021-01-01 10:27

    if you don't need to limit the column size, you can just disable the width.

    unknown ...
    

    I need the bootstrap definition for the other column's properties (padding, height, etc.), so I added a col definition, but a small unit (col-xs-1).

    notes:

    • the "!important" clause might be dropped (i'm not sure)
    • In my project the texts are known to be small anyway.

提交回复
热议问题