How to reset 'display' property for flex-item

前端 未结 3 1210
闹比i
闹比i 2021-02-19 15:51

I\'m trying to convert old layout based on tables and JS to the new Flexbox with backward compatibility by keeping the tables for old browsers (specifically IE8, IE9 and Opera 1

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 16:02

    .child {
      flex-shrink: 0;
    }
    

    add flex-shrink property to prevent shrinking more than its content

提交回复
热议问题