HTML Table - Both fixed and multiple variable column widths

后端 未结 3 2144
我寻月下人不归
我寻月下人不归 2021-02-12 15:47

I have to build a table with 5 columns. The table width is variable (50% of content width). Some columns contain fixed-size buttons, so those columns should have a fixed with, s

3条回答
  •  情书的邮戳
    2021-02-12 16:17

    to fixed width in a table, you need the table-layout propertie set to fixed; Since you mix % and px , it will not be coherent .

    You may set only the px width and eventually a small value of % and let other column to use width left avalaible. example : http://jsfiddle.net/M4Et8/2/

    Column1 Column2 Column3 Column4 Column5

提交回复
热议问题