Select element grows differently than input in display flex

前端 未结 3 841
孤独总比滥情好
孤独总比滥情好 2021-01-06 04:48

I\'m getting an unexpected behavior in my setup. The inputs grow horizontally as expected but on the row with a select control, the growth seems to be distorted.

I s

3条回答
  •  迷失自我
    2021-01-06 05:22

    If you want all the flex-items to be the same length, you should use the css 'flex' property, so just set div.input-element to flex:1.

提交回复
热议问题